Class Log4JLogger
java.lang.Object
io.netty.util.internal.logging.AbstractInternalLogger
io.netty.util.internal.logging.Log4JLogger
- All Implemented Interfaces:
InternalLogger, Serializable
Apache Log4J
logger.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringFollowing the pattern discussed in pages 162 through 168 of "The complete log4j manual".private final org.apache.log4j.Loggerprivate static final long(package private) final booleanFields inherited from class AbstractInternalLogger
EXCEPTION_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message object at level DEBUG.voidLog a message at level DEBUG according to the specified format and argument.voidLog a message at level DEBUG according to the specified format and arguments.voidLog a message at level DEBUG according to the specified format and arguments.voidLog an exception (throwable) at level DEBUG with an accompanying message.voidLog a message object at the ERROR level.voidLog a message at the ERROR level according to the specified format and argument.voidLog a message at level ERROR according to the specified format and arguments.voidLog a message at the ERROR level according to the specified format and arguments.voidLog an exception (throwable) at the ERROR level with an accompanying message.voidLog a message object at the INFO level.voidLog a message at level INFO according to the specified format and argument.voidLog a message at level INFO according to the specified format and arguments.voidLog a message at the INFO level according to the specified format and arguments.voidLog an exception (throwable) at the INFO level with an accompanying message.booleanIs this logger instance enabled for the DEBUG level?booleanIs this logger instance enabled for level ERROR?booleanIs this logger instance enabled for the INFO level?private booleanbooleanIs this logger instance enabled for the TRACE level?booleanIs this logger instance enabled for the WARN level?voidLog a message object at level TRACE.voidLog a message at level TRACE according to the specified format and argument.voidLog a message at level TRACE according to the specified format and arguments.voidLog a message at level TRACE according to the specified format and arguments.voidLog an exception (throwable) at level TRACE with an accompanying message.voidLog a message object at the WARN level.voidLog a message at the WARN level according to the specified format and argument.voidLog a message at level WARN according to the specified format and arguments.voidLog a message at the WARN level according to the specified format and arguments.voidLog an exception (throwable) at the WARN level with an accompanying message.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
private final transient org.apache.log4j.Logger logger -
FQCN
Following the pattern discussed in pages 162 through 168 of "The complete log4j manual". -
traceCapable
final boolean traceCapable
-
-
Constructor Details
-
Log4JLogger
Log4JLogger(org.apache.log4j.Logger logger)
-
-
Method Details
-
isTraceCapable
private boolean isTraceCapable() -
isTraceEnabled
public boolean isTraceEnabled()Is this logger instance enabled for the TRACE level?- Returns:
- True if this Logger is enabled for level TRACE, false otherwise.
-
trace
Log a message object at level TRACE.- Parameters:
msg- - the message object to be logged
-
trace
-
trace
Log a message at level TRACE according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the TRACE level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
trace
-
trace
-
isDebugEnabled
public boolean isDebugEnabled()Is this logger instance enabled for the DEBUG level?- Returns:
- True if this Logger is enabled for level DEBUG, false otherwise.
-
debug
Log a message object at level DEBUG.- Parameters:
msg- - the message object to be logged
-
debug
-
debug
Log a message at level DEBUG according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
debug
-
debug
-
isInfoEnabled
public boolean isInfoEnabled()Is this logger instance enabled for the INFO level?- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
info
Log a message object at the INFO level.- Parameters:
msg- - the message object to be logged
-
info
-
info
Log a message at the INFO level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the INFO level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
info
-
info
-
isWarnEnabled
public boolean isWarnEnabled()Is this logger instance enabled for the WARN level?- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
warn
Log a message object at the WARN level.- Parameters:
msg- - the message object to be logged
-
warn
-
warn
Log a message at the WARN level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the WARN level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
warn
-
warn
-
isErrorEnabled
public boolean isErrorEnabled()Is this logger instance enabled for level ERROR?- Returns:
- True if this Logger is enabled for level ERROR, false otherwise.
-
error
Log a message object at the ERROR level.- Parameters:
msg- - the message object to be logged
-
error
-
error
Log a message at the ERROR level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the ERROR level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
error
-
error
-