[ 
https://issues.apache.org/jira/browse/LOG4J2-3586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17604004#comment-17604004
 ] 

Deepak Pareek commented on LOG4J2-3586:
---------------------------------------

Hello [~rgoers] ,

Thank you Ralph, We have figured out the way for the above mentioned 
requirement and have created a custom appender using Log4j2 and consuming the 
same in log4j2.xml from {*}external JAR{*}.
*External JAR* is added in CLASSPATH and the same is available at runtime, but 
at runtime log4j2.xml is not able to locate the custom appender class.

Though we are specifying the custom appender package in log4j2.xml :
_<Configuration status="warn" packages="com.custom.appender.logging.log4j">_
Facing the below mentioned error during service startup : 
2022-09-14 14:46:17,642 main ERROR Error processing element CustomAppender 
([Appenders: null]): CLASS_NOT_FOUND
2022-09-14 14:46:17,654 main ERROR Unable to locate appender "cstAppender" for 
logger config "root"
 
Kindly suggest, if we are missing something.
Any help on this will be highly appreciated.
 
Thanks,
Deepak Pareek

> 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)

Reply via email to