[
https://issues.apache.org/jira/browse/LOG4J2-2321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16445228#comment-16445228
]
ASF subversion and git services commented on LOG4J2-2321:
---------------------------------------------------------
Commit 6ce7867d746e883a7e9f9f9a585df0b5ffaea001 in logging-log4j2's branch
refs/heads/master from [~ckozak]
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=6ce7867 ]
[LOG4J2-2321] AsyncLogger uses the parent level when unspecified
AsyncLoggerConfig is parsed the same way as LoggerConfig.
When level is not specified on an AsyncLogger it is inherited from
the parent rather than set to ERROR, this provides parity with
the standard LoggerConfig.
> AsyncLogger without specifying a level always uses ERROR
> --------------------------------------------------------
>
> Key: LOG4J2-2321
> URL: https://issues.apache.org/jira/browse/LOG4J2-2321
> Project: Log4j 2
> Issue Type: Bug
> Components: Configurators
> Affects Versions: 2.11.0
> Reporter: Carter Kozak
> Assignee: Carter Kozak
> Priority: Major
>
> An AsyncLogger definitions without a level defined always have "ERROR" level
> set, where Logger definitions defer to the parent config, error is only set
> for the root logger.
> For example:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration>
> <Appenders>
> <Null name="null"/>
> </Appenders>
> <Loggers>
> <AsyncLogger name="com.foo" />
> <AsyncRoot level="trace">
> <AppenderRef ref="null" />
> </AsyncRoot>
> </Loggers>
> </Configuration>{noformat}
> Logger "com.foo" level should be trace, inherited from the root logger,
> however it will currently be error.
> The same config using "Logger" and "Root" rather than their asynchronous
> counterparts will produce the expected behavior.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)