Lars Bohl created LOG4J2-3160:
---------------------------------

             Summary: log4j2.debug system property has no effect
                 Key: LOG4J2-3160
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3160
             Project: Log4j 2
          Issue Type: Documentation
            Reporter: Lars Bohl


The online FAQ mentions a system property "log4j2.debug", which should print 
all internal logging to the console.

See: [https://logging.apache.org/log4j/2.x/faq.html]

However this property is in fact read from the environment, not from a system 
property. See method "isDebugPropertyEnabled" in class "StatusLogger".

Possible solutions:
 * Update the FAQ
 * Read the system property, in addition to the env property (potentially 
breaking, but unlikely)
 * Read the system property only (probably breaking)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to