You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "thomas.zheng (JIRA)" <ji...@apache.org> on 2017/07/03 02:29:00 UTC
[jira] [Created] (LOG4J2-1965) logger filter cant work
thomas.zheng created LOG4J2-1965:
------------------------------------
Summary: logger filter cant work
Key: LOG4J2-1965
URL: https://issues.apache.org/jira/browse/LOG4J2-1965
Project: Log4j 2
Issue Type: Bug
Components: Core, Documentation
Affects Versions: 2.8.2
Environment: windows 7
idea 2015
jdk 8u60 64bit
Reporter: thomas.zheng
according to the document, logger can set filters, but +filters cant work.+
the reason is, when method org.apache.logging.log4j.core.Logger.PrivateConfig#filter(org.apache.logging.log4j.Level, org.apache.logging.log4j.Marker, java.lang.String)
is call, +privateConfig choose filter in a wrong way+, it only choose filter from context , ignoring the filter from logger。
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)