[
https://issues.apache.org/jira/browse/LOG4J2-3586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600763#comment-17600763
]
Ralph Goers commented on LOG4J2-3586:
-------------------------------------
[~depareek] You still haven't explained what CustomAppender does. What
functionality does it provide that required you to create a custom Appender?
Sending arbitrary parameters to an Appender makes no sense unless it knows what
to do with them. For example, if you want appName in the logs that is easily
doable without creating a custom Appender. But as I have no idea what
"gridNames" is I can't hazard a guess as to what to do with that.
Please state what the requirements are for CustomAppender. 1. Where does it
send the output? 2. How does it format the output (how does it transform the
log event into something consumable by a human or downstream process)? etc.
> AppenderSkeleton substitute in Log4j2.17.
> -----------------------------------------
>
> Key: LOG4J2-3586
> URL: https://issues.apache.org/jira/browse/LOG4J2-3586
> Project: Log4j 2
> Issue Type: Question
> Components: Appenders
> Affects Versions: 2.17.2
> Reporter: Deepak Pareek
> Priority: Major
> Labels: features
>
> Hello Team,
> We are using log4j 1.x in our project, it has custom appender for logging
> which leverages org.apache.log4j.AppenderSkeleton.
> It uses Grid name and App name mapping for dumping app specific logs.
> We have to upgrade log4j version to Log4j2. Hence we are looking for
> AppenderSkeleton substitute, which uses the same underlying architecture. We
> have already explored the available customized appender options [using
> @Plugin], but that is not feasible for us as our core framework is designed
> in such a way that we need to provide App name and Grid name in log4j.xml
> itself.
> So to summarize we are looking forward for help on below points :
> 1. Is there any way to add app name and grid name in Log4j2.xml ?
> 2. Is the any AppenderSkeleton substitute, which uses the same underlying
> architecture ?
> Any help on the above mentioned points will be highly appreciated.
>
> Thanks,
> Deepak Pareek
--
This message was sent by Atlassian Jira
(v8.20.10#820010)