[
https://issues.apache.org/jira/browse/LOG4J2-2379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ralph Goers resolved LOG4J2-2379.
---------------------------------
Resolution: Not A Problem
Why is this opened as a Jira issue. There is nothing here to fix. Your Logger
is simply configured to use the root LoggerConfig.
> Is the LoggerConfig name and parent blank for a new logger?
> -----------------------------------------------------------
>
> Key: LOG4J2-2379
> URL: https://issues.apache.org/jira/browse/LOG4J2-2379
> Project: Log4j 2
> Issue Type: Question
> Components: Core
> Affects Versions: 2.11.0
> Reporter: Ranjit Dsouza
> Priority: Major
>
> This is the code snippet, From the output, notice that loggerConfig name is
> blank and its parent is null. Is this how it is supposed to be?
> String loggerName = "com.myCompany.myClass";
> static Logger logger = LogManager.getLogger(loggerName);
> LoggerConfig loggerConfig =
> LoggerContext.getContext(false).getConfiguration().getLoggerConfig(loggerName);
> System.out.println("new loggerConfig name: " + loggerConfig.getName());
> System.out.println("new loggerConfig parent : " + loggerConfig.getParent());
> Output:
> new loggerConfig name:
> new loggerConfig parent : null
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)