Details
-
Question
-
Status: Reopened
-
Major
-
Resolution: Unresolved
-
2.11.0
-
None
-
None
-
Important
Description
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