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

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

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

Gary Gregory updated LOG4J2-2174:
---------------------------------
    Affects Version/s: 2.10.0

I see that the code change of logging from {{ALL}} to {{OFF}} was made by this commit:
{noformat}
commit d2e048cf53877ca8ed7fb6136c972494586a36b1
Author: Ralph Goers <rg...@apache.org> 2011-10-13 12:13:00
Committer: Ralph Goers <rg...@apache.org> 2011-10-13 12:13:00
Parent: 9ea7d89eb658697746b6a70d757859c63c6bf134 (Move LoggingException to API. Add EventLogger. Don't write thread dump to console during unit test)
Child: 2a7cb80ce4b39e13fb696f90bbb6be6ddbb4f4d6 (Fix checkstyle errors in API)
Branches: AutoCloseableLock, GenericMapMessage, GenericMapMessageSimple, LOG4J-1181, LOG4J2-1136, LOG4J2-1161, LOG4J2-1278-gc-free-level-logger, LOG4J2-1395, LOG4J2-1539, LOG4J2-1547-AbstractConfiguration-with-LoggerContext, LOG4J2-1558, LOG4J2-1597, LOG4J2-1651, LOG4J2-1685, LOG4J2-1888, LOG4J2-1949, LOG4J2-1986, LOG4J2-1986-b, LOG4J2-599-MoveLogger2ToLogger, LOG4J2-952, Lucene5, StyledMessage and 38 more branches

Add tests for StrLookups and provide StrLookups access to the LogEvent. Add RoutingAppender
{noformat}

[~ralphgoers]: Why are we logging here with the level {{OFF}}?

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