Class Log4JULogger
- java.lang.Object
-
- org.apache.log4j.spi.Log4JULogger
-
-
Constructor Summary
Constructors Constructor Description Log4JULogger(org.apache.log4j.Logger l)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Object msg)
Log a message object with the DEBUG level.void
debug(Object parameterizedMsg, Object param1)
Log a parameterized message object at the DEBUG level.void
debug(Object msg, Throwable t)
Log a message object with theDEBUG
level including the stack trace of theThrowable
t
passed as parameter.void
debug(String parameterizedMsg, Object param1, Object param2)
Log a parameterized message object at the DEBUG level.void
error(Object msg)
Log a message object with the ERROR level.void
error(Object parameterizedMsg, Object param1)
Log a parameterized message object at the ERROR level.void
error(Object msg, Throwable t)
Log a message object with theERROR
level including the stack trace of theThrowable
t
passed as parameter.void
error(String parameterizedMsg, Object param1, Object param2)
Log a parameterized message object at the ERROR level.void
info(Object msg)
Log a message object with the INFO level.void
info(Object parameterizedMsg, Object param1)
Log a parameterized message object at the INFO level.void
info(Object msg, Throwable t)
Log a message object with theINFO
level including the stack trace of theThrowable
t
passed as parameter.void
info(String parameterizedMsg, Object param1, Object param2)
Log a parameterized message object at the INFO level.boolean
isDebugEnabled()
Is the logger instance enabled for the DEBUG level?boolean
isErrorEnabled()
Is the logger instance enabled for the ERROR level?boolean
isInfoEnabled()
Is the logger instance enabled for the INFO level?boolean
isWarnEnabled()
Is the logger instance enabled for the WARN level?void
warn(Object msg)
Log a message object with the WARN level.void
warn(Object parameterizedMsg, Object param1)
Log a parameterized message object at the WARN level.void
warn(Object msg, Throwable t)
Log a message object with theWARN
level including the stack trace of theThrowable
t
passed as parameter.void
warn(String parameterizedMsg, Object param1, Object param2)
Log a parameterized message object at the WARN level.
-
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled()
Is the logger instance enabled for the DEBUG level?- Specified by:
isDebugEnabled
in interfaceULogger
- Returns:
- true if debug is enabled.
-
debug
public void debug(Object msg)
Log a message object with the DEBUG level.
-
debug
public void debug(Object parameterizedMsg, Object param1)
Log a parameterized message object at the DEBUG level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
debug
public void debug(String parameterizedMsg, Object param1, Object param2)
Log a parameterized message object at the DEBUG level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
debug
public void debug(Object msg, Throwable t)
Log a message object with theDEBUG
level including the stack trace of theThrowable
t
passed as parameter.
-
isInfoEnabled
public boolean isInfoEnabled()
Is the logger instance enabled for the INFO level?- Specified by:
isInfoEnabled
in interfaceULogger
- Returns:
- true if debug is enabled.
-
info
public void info(Object msg)
Log a message object with the INFO level.
-
info
public void info(Object parameterizedMsg, Object param1)
Log a parameterized message object at the INFO level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
info
public void info(String parameterizedMsg, Object param1, Object param2)
Log a parameterized message object at the INFO level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
info
public void info(Object msg, Throwable t)
Log a message object with theINFO
level including the stack trace of theThrowable
t
passed as parameter.
-
isWarnEnabled
public boolean isWarnEnabled()
Is the logger instance enabled for the WARN level?- Specified by:
isWarnEnabled
in interfaceULogger
- Returns:
- true if debug is enabled.
-
warn
public void warn(Object msg)
Log a message object with the WARN level.
-
warn
public void warn(Object parameterizedMsg, Object param1)
Log a parameterized message object at the WARN level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
warn
public void warn(String parameterizedMsg, Object param1, Object param2)
Log a parameterized message object at the WARN level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
warn
public void warn(Object msg, Throwable t)
Log a message object with theWARN
level including the stack trace of theThrowable
t
passed as parameter.
-
isErrorEnabled
public boolean isErrorEnabled()
Is the logger instance enabled for the ERROR level?- Specified by:
isErrorEnabled
in interfaceULogger
- Returns:
- true if debug is enabled.
-
error
public void error(Object msg)
Log a message object with the ERROR level.
-
error
public void error(Object parameterizedMsg, Object param1)
Log a parameterized message object at the ERROR level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
error
public void error(String parameterizedMsg, Object param1, Object param2)
Log a parameterized message object at the ERROR level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
-