Class JdkLogger
- All Implemented Interfaces:
InternalLogger
,Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Logger
(package private) static final String
private static final long
(package private) static final String
Fields inherited from class io.netty.util.internal.logging.AbstractInternalLogger
EXCEPTION_MESSAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log a message object at level FINE.void
Log a message at level FINE according to the specified format and argument.void
Log a message at level FINE according to the specified format and arguments.void
Log a message at level FINE according to the specified format and arguments.void
Log an exception (throwable) at level FINE with an accompanying message.void
Log a message object at the SEVERE level.void
Log a message at the SEVERE level according to the specified format and argument.void
Log a message at level SEVERE according to the specified format and arguments.void
Log a message at the SEVERE level according to the specified format and arguments.void
Log an exception (throwable) at the SEVERE level with an accompanying message.private static void
fillCallerData
(String callerFQCN, LogRecord record) Fill in caller data if possible.void
Log a message object at the INFO level.void
Log a message at level INFO according to the specified format and argument.void
Log a message at level INFO according to the specified format and arguments.void
Log a message at the INFO level according to the specified format and arguments.void
Log an exception (throwable) at the INFO level with an accompanying message.boolean
Is this logger instance enabled for the FINE level?boolean
Is this logger instance enabled for level SEVERE?boolean
Is this logger instance enabled for the INFO level?boolean
Is this logger instance enabled for the FINEST level?boolean
Is this logger instance enabled for the WARNING level?private void
Log the message at the specified level with the specified throwable if any.void
Log a message object at level FINEST.void
Log a message at level FINEST according to the specified format and argument.void
Log a message at level FINEST according to the specified format and arguments.void
Log a message at level FINEST according to the specified format and arguments.void
Log an exception (throwable) at level FINEST with an accompanying message.void
Log a message object at the WARNING level.void
Log a message at the WARNING level according to the specified format and argument.void
Log a message at level WARNING according to the specified format and arguments.void
Log a message at the WARNING level according to the specified format and arguments.void
Log 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
-