Class JdkLogger
- All Implemented Interfaces:
InternalLogger,Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Logger(package private) static final Stringprivate static final long(package private) static final StringFields inherited from class io.netty.util.internal.logging.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
Log a message at level FINEST according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for level FINEST.
- Parameters:
format- the format stringarg- the argument
-
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
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 stringargArray- an array of arguments
-
trace
Log an exception (throwable) at level FINEST with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
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
Log a message at level FINE according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for level FINE.
- Parameters:
format- the format stringarg- the argument
-
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
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 stringargArray- an array of arguments
-
debug
Log an exception (throwable) at level FINE with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
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
Log a message at level INFO according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the INFO level.
- Parameters:
format- the format stringarg- the argument
-
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
Log a message at level INFO 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 stringargArray- an array of arguments
-
info
Log an exception (throwable) at the INFO level with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
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
Log a message at the WARNING level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the WARNING level.
- Parameters:
format- the format stringarg- the argument
-
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
Log a message at level WARNING 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 stringargArray- an array of arguments
-
warn
Log an exception (throwable) at the WARNING level with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
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
Log a message at the SEVERE level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the SEVERE level.
- Parameters:
format- the format stringarg- the argument
-
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 an exception (throwable) at the SEVERE level with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
log
Log the message at the specified level with the specified throwable if any. This method creates a LogRecord and fills in caller date before calling this instance's JDK14 logger. See bug report #13 for more details. -
fillCallerData
Fill in caller data if possible.- Parameters:
record- The record to update
-