[ 
https://issues.apache.org/jira/browse/LOG4J2-3160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Bohl updated LOG4J2-3160:
------------------------------
    Description: 
The online FAQ mentions a system property "log4j2.debug", which should print 
all internal logging to the console, if set to any value.

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

However this property only has the desired effect, if set to a value with a 
case-insensitive String value of "TRUE". Please either update the 
documentation, or the code.

  was:
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)


> 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
>            Priority: Trivial
>
> The online FAQ mentions a system property "log4j2.debug", which should print 
> all internal logging to the console, if set to any value.
> See: [https://logging.apache.org/log4j/2.x/faq.html]
> However this property only has the desired effect, if set to a value with a 
> case-insensitive String value of "TRUE". Please either update the 
> documentation, or the code.



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

Reply via email to