You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "esotericman (via GitHub)" <gi...@apache.org> on 2023/04/23 08:11:24 UTC

[I] Support merge root LoggerConfig and appropriate LoggerConfig (logging-log4j2)

esotericman opened a new issue, #1442:
URL: https://github.com/apache/logging-log4j2/issues/1442

   
   Current org.apache.logging.log4j.core.config.Configuration#getLoggerConfig only one implementor - AbstractConfiguration. like below:
   ```
       public LoggerConfig getLoggerConfig(final String loggerName) {
           LoggerConfig loggerConfig = loggerConfigs.get(loggerName);
           if (loggerConfig != null) {
               return loggerConfig;
           }
           String substr = loggerName;
           while ((substr = NameUtil.getSubName(substr)) != null) {
               loggerConfig = loggerConfigs.get(substr);
               if (loggerConfig != null) {
                   return loggerConfig;
               }
           }
           return root;
       }
   ```
   As It shows, use loggerName or root .But sometimes,we just want to add an global appender without modify the root configuration.For example,add a socket appender globally.Maybe another implementor or method?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support merge root LoggerConfig and appropriate LoggerConfig (logging-log4j2)

Posted by "vy (via GitHub)" <gi...@apache.org>.
vy commented on issue #1442:
URL: https://github.com/apache/logging-log4j2/issues/1442#issuecomment-1554625542

   @esotericman, as indicated in [the Log4j support page](https://logging.apache.org/log4j/2.x/support.html), questions should be directed to `log4j-user@logging.apache.org`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support merge root LoggerConfig and appropriate LoggerConfig (logging-log4j2)

Posted by "vy (via GitHub)" <gi...@apache.org>.
vy closed issue #1442: Support merge root LoggerConfig and appropriate LoggerConfig
URL: https://github.com/apache/logging-log4j2/issues/1442


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org