You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2018/01/03 21:21:02 UTC

[jira] [Commented] (LOG4J2-2174) EventLogger#logEvent() Incorrect documentation

    [ https://issues.apache.org/jira/browse/LOG4J2-2174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16310298#comment-16310298 ] 

Ralph Goers commented on LOG4J2-2174:
-------------------------------------

Well, that was over 6 years ago so I don't recall what I was dealing with at the time. But as I recall it is because when you specify OFF as a logging level on logIfEnabled it actually means it will always be logged. Yes, I know that is counter intuitive but if you specify logIfEnabled with a level of ALL it will only be logged it the level specified in the configuration is ALL. OTOH, if you specify a logging level of OFF in the configuration you would only get events that are logged at the OFF level.

> EventLogger#logEvent() Incorrect documentation
> ----------------------------------------------
>
>                 Key: LOG4J2-2174
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2174
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.10.0
>            Reporter: Kevin Chan
>            Priority: Minor
>
> The documentation for EventLogger#logEvent() incorrectly says it logs at Level.ALL when it actually logs at LEVEL.OFF.
> https://github.com/apache/logging-log4j2/blob/master/log4j-api/src/main/java/org/apache/logging/log4j/EventLogger.java



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)