logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LOG4J2-179) Add Logger interface APIs to log at given levels
Date Mon, 25 Mar 2013 13:53:15 GMT

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

Gary Gregory resolved LOG4J2-179.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-beta5

{noformat}
commit -m "[LOG4J2-179] Add Logger interface APIs to log at given levels. (I had to @Ignore
SocketReconnectTest locally to get the whole system to run 'mvn clean test'.)" C:/svn/org/apache/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java
C:/svn/org/apache/log4j2/trunk/src/changes/changes.xml C:/svn/org/apache/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/AbstractLoggerTest.java
C:/svn/org/apache/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
    Sending        C:/svn/org/apache/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java
    Sending        C:/svn/org/apache/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
    Sending        C:/svn/org/apache/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/AbstractLoggerTest.java
    Sending        C:/svn/org/apache/log4j2/trunk/src/changes/changes.xml
    Transmitting file data ...
    Committed revision 1460661.
{noformat}

                
> Add Logger interface APIs to log at given levels
> ------------------------------------------------
>
>                 Key: LOG4J2-179
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-179
>             Project: Log4j 2
>          Issue Type: Improvement
>    Affects Versions: 2.0-beta4
>            Reporter: Joern Huxhorn
>              Labels: level, logger
>             Fix For: 2.0-beta5
>
>
> The interface org.apache.logging.log4j.Logger contains the method boolean "isEnabled(Level
level)" which is very nice.
> I would have expected it to also contain the following methods:
> boolean isEnabled(Level level, Marker marker);
> void log(Level level, Marker marker, Message msg);
> void log(Level level, Marker marker, Message msg, Throwable t);
> void log(Level level, Marker marker, Object message);
> void log(Level level, Marker marker, Object message, Throwable t);
> void log(Level level, Marker marker, String message);
> void log(Level level, Marker marker, String message, Object... params);
> void log(Level level, Marker marker, String message, Throwable t);
> void log(Level level, Message msg);
> void log(Level level, Message msg, Throwable t);
> void log(Level level, Object message);
> void log(Level level, Object message, Throwable t);
> void log(Level level, String message);
> void log(Level level, String message, Object... params);
> void log(Level level, String message, Throwable t);
> (i.e. every method defined for an explicit level but just with an Level as the first
argument)
> That way it would be easier to log at a variable level in cases where the level to be
used can only be determined at runtime.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message