You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2022/09/02 20:19:00 UTC

[jira] [Comment Edited] (LOG4J2-3586) AppenderSkeleton substitute in Log4j2.17.

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

Ralph Goers edited comment on LOG4J2-3586 at 9/2/22 8:18 PM:
-------------------------------------------------------------

I still don't understand what this does. Showing me the configuration doesn't really explain what the Appender needs to do. For example, your configuration shows the Appender only receives error events but your grid.xml has a "dpLevel" (no idea what that is) and enableLevel and disableLevel. Is the gridinfo.xml uses by the custom appender or is that a config file for something else? What does it mean for enableLevel and disableLevel to have the same value?  Do enableLevel and disableLevel reflect the log level of the logging event somehow?


was (Author: ralph.goers@dslextreme.com):
I still don't understand what this does. Showing me the configuration doesn't really explain what the Appender needs to do. For example, your configuration shows the Appender only receives error events but your grid.xml has a "dpLevel" (no idea what that is) and enableLevel and disableLevel. Is the gridinfo.xml uses by the custom appender or is that a config file for something else?

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