Class JdkLogger
java.lang.Object
io.netty.util.internal.logging.AbstractInternalLogger
io.netty.util.internal.logging.JdkLogger
- All Implemented Interfaces:
InternalLogger, Serializable
java.util.logging
logger.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Logger(package private) static final Stringprivate static final long(package private) static final StringFields inherited from class AbstractInternalLogger
EXCEPTION_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message object at level FINE.voidLog a message at level FINE according to the specified format and argument.voidLog a message at level FINE according to the specified format and arguments.voidLog a message at level FINE according to the specified format and arguments.voidLog an exception (throwable) at level FINE with an accompanying message.voidLog a message object at the SEVERE level.voidLog a message at the SEVERE level according to the specified format and argument.voidLog a message at level SEVERE according to the specified format and arguments.voidLog a message at the SEVERE level according to the specified format and arguments.voidLog an exception (throwable) at the SEVERE level with an accompanying message.private static voidfillCallerData(String callerFQCN, LogRecord record) Fill in caller data if possible.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 FINE level?booleanIs this logger instance enabled for level SEVERE?booleanIs this logger instance enabled for the INFO level?booleanIs this logger instance enabled for the FINEST level?booleanIs this logger instance enabled for the WARNING level?private voidLog the message at the specified level with the specified throwable if any.voidLog a message object at level FINEST.voidLog a message at level FINEST according to the specified format and argument.voidLog a message at level FINEST according to the specified format and arguments.voidLog a message at level FINEST according to the specified format and arguments.voidLog an exception (throwable) at level FINEST with an accompanying message.voidLog a message object at the WARNING level.voidLog a message at the WARNING level according to the specified format and argument.voidLog a message at level WARNING according to the specified format and arguments.voidLog a message at the WARNING level according to the specified format and arguments.voidLog an exception (throwable) at the WARNING level with an accompanying message.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
-
SELF
-
SUPER
-
-
Constructor Details
-
JdkLogger
JdkLogger(Logger logger)
-
-
Method Details
-
isTraceEnabled
public boolean isTraceEnabled()Is this logger instance enabled for the FINEST level?- Returns:
- True if this Logger is enabled for level FINEST, false otherwise.
-
trace
Log a message object at level FINEST.- Parameters:
msg- - the message object to be logged
-
trace
-
trace
Log a message at level FINEST according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the FINEST 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 FINE level?- Returns:
- True if this Logger is enabled for level FINE, false otherwise.
-
debug
Log a message object at level FINE.- Parameters:
msg- - the message object to be logged
-
debug
-
debug
Log a message at level FINE according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the FINE 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 WARNING level?- Returns:
- True if this Logger is enabled for the WARNING level, false otherwise.
-
warn
Log a message object at the WARNING level.- Parameters:
msg- - the message object to be logged
-
warn
-
warn
Log a message at the WARNING level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the WARNING 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 SEVERE?- Returns:
- True if this Logger is enabled for level SEVERE, false otherwise.
-
error
Log a message object at the SEVERE level.- Parameters:
msg- - the message object to be logged
-
error
-
error
Log a message at the SEVERE level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the SEVERE level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
error
Log a message at level SEVERE according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the SEVERE level.
- Parameters:
format- the format stringarguments- an array of arguments
-
error
-
log
-
fillCallerData
-