Top Description Methods
io.netty5.util.internal.logging

public Interface InternalLogger

Known Direct Implementers
io.netty5.util.internal.logging.Log4J2Logger, io.netty5.util.internal.logging.AbstractInternalLogger

Internal-use-only logger used by Netty. DO NOT access this class outside of Netty.

Method Summary

Modifier and TypeMethod and Description
public void
debug(String
the message string to be logged
msg
)

Log a message at the DEBUG level.

public void
debug(String
the format string
format
,
Object
the argument
arg
)

Log a message at the DEBUG level according to the specified format and argument.

public void
debug(String
the format string
format
,
Object
the first argument
argA
,
Object
the second argument
argB
)

Log a message at the DEBUG level according to the specified format and arguments.

public void
debug(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Log a message at the DEBUG level according to the specified format and arguments.

public void
debug(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the DEBUG level with an accompanying message.

public void
debug(Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the DEBUG level.

public void
error(String
the message string to be logged
msg
)

Log a message at the ERROR level.

public void
error(String
the format string
format
,
Object
the argument
arg
)

Log a message at the ERROR level according to the specified format and argument.

public void
error(String
the format string
format
,
Object
the first argument
argA
,
Object
the second argument
argB
)

Log a message at the ERROR level according to the specified format and arguments.

public void
error(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Log a message at the ERROR level according to the specified format and arguments.

public void
error(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the ERROR level with an accompanying message.

public void
error(Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the ERROR level.

public void
info(String
the message string to be logged
msg
)

Log a message at the INFO level.

public void
info(String
the format string
format
,
Object
the argument
arg
)

Log a message at the INFO level according to the specified format and argument.

public void
info(String
the format string
format
,
Object
the first argument
argA
,
Object
the second argument
argB
)

Log a message at the INFO level according to the specified format and arguments.

public void
info(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Log a message at the INFO level according to the specified format and arguments.

public void
info(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the INFO level with an accompanying message.

public void
info(Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the INFO level.

public boolean

Returns:

True if this Logger is enabled for the DEBUG level, false otherwise.
isDebugEnabled
()

Is the logger instance enabled for the DEBUG level?

public boolean

Returns:

True if this Logger is enabled for the specified level, false otherwise.
isEnabled
(InternalLogLevel level)

Is the logger instance enabled for the specified level?

public boolean

Returns:

True if this Logger is enabled for the ERROR level, false otherwise.
isErrorEnabled
()

Is the logger instance enabled for the ERROR level?

public boolean

Returns:

True if this Logger is enabled for the INFO level, false otherwise.
isInfoEnabled
()

Is the logger instance enabled for the INFO level?

public boolean

Returns:

True if this Logger is enabled for the TRACE level, false otherwise.
isTraceEnabled
()

Is the logger instance enabled for the TRACE level?

public boolean

Returns:

True if this Logger is enabled for the WARN level, false otherwise.
isWarnEnabled
()

Is the logger instance enabled for the WARN level?

public void
log(InternalLogLevel level, String
the message string to be logged
msg
)

Log a message at the specified level.

public void
log(InternalLogLevel level, String
the format string
format
,
Object
the argument
arg
)

Log a message at the specified level according to the specified format and argument.

public void
log(InternalLogLevel level, String
the format string
format
,
Object
the first argument
argA
,
Object
the second argument
argB
)

Log a message at the specified level according to the specified format and arguments.

public void
log(InternalLogLevel level, String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Log a message at the specified level according to the specified format and arguments.

public void
log(InternalLogLevel level, String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the specified level with an accompanying message.

public void
log(InternalLogLevel level, Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the specified level.

public String

Returns:

name of this logger instance
name
()

Return the name of this InternalLogger instance.

public void
trace(String
the message string to be logged
msg
)

Log a message at the TRACE level.

public void
trace(String
the format string
format
,
Object
the argument
arg
)

Log a message at the TRACE level according to the specified format and argument.

public void
trace(String
the format string
format
,
Object
the first argument
argA
,
Object
the second argument
argB
)

Log a message at the TRACE level according to the specified format and arguments.

public void
trace(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Log a message at the TRACE level according to the specified format and arguments.

public void
trace(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the TRACE level with an accompanying message.

public void
trace(Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the TRACE level.

public void
warn(String
the message string to be logged
msg
)

Log a message at the WARN level.

public void
warn(String
the format string
format
,
Object
the argument
arg
)

Log a message at the WARN level according to the specified format and argument.

public void
warn(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Log a message at the WARN level according to the specified format and arguments.

public void
warn(String
the format string
format
,
Object
the first argument
argA
,
Object
the second argument
argB
)

Log a message at the WARN level according to the specified format and arguments.

public void
warn(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the WARN level with an accompanying message.

public void
warn(Throwable
the exception (throwable) to log
t
)

Log an exception (throwable) at the WARN level.

Method Detail

debugback to summary
public void debug(String msg)

Log a message at the DEBUG level.

Parameters
msg:String

the message string to be logged

debugback to summary
public void debug(String format, Object arg)

Log a message at the DEBUG level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the DEBUG level.

Parameters
format:String

the format string

arg:Object

the argument

debugback to summary
public void debug(String format, Object argA, Object argB)

Log a message at the DEBUG level according to the specified format and arguments.

This form avoids superfluous object creation when the logger is disabled for the DEBUG level.

Parameters
format:String

the format string

argA:Object

the first argument

argB:Object

the second argument

debugback to summary
public void debug(String format, Object... arguments)

Log a message at the DEBUG level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the DEBUG level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for DEBUG. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

debugback to summary
public void debug(String msg, Throwable t)

Log an exception (throwable) at the DEBUG level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

debugback to summary
public void debug(Throwable t)

Log an exception (throwable) at the DEBUG level.

Parameters
t:Throwable

the exception (throwable) to log

errorback to summary
public void error(String msg)

Log a message at the ERROR level.

Parameters
msg:String

the message string to be logged

errorback to summary
public void error(String format, Object arg)

Log a message at the ERROR level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the ERROR level.

Parameters
format:String

the format string

arg:Object

the argument

errorback to summary
public void error(String format, Object argA, Object argB)

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:String

the format string

argA:Object

the first argument

argB:Object

the second argument

errorback to summary
public void error(String format, Object... arguments)

Log a message at the ERROR level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the ERROR level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for ERROR. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

errorback to summary
public void error(String msg, Throwable t)

Log an exception (throwable) at the ERROR level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

errorback to summary
public void error(Throwable t)

Log an exception (throwable) at the ERROR level.

Parameters
t:Throwable

the exception (throwable) to log

infoback to summary
public void info(String msg)

Log a message at the INFO level.

Parameters
msg:String

the message string to be logged

infoback to summary
public void info(String format, Object arg)

Log a message at the INFO level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the INFO level.

Parameters
format:String

the format string

arg:Object

the argument

infoback to summary
public void info(String format, Object argA, Object argB)

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:String

the format string

argA:Object

the first argument

argB:Object

the second argument

infoback to summary
public void info(String format, Object... arguments)

Log a message at the INFO level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the INFO level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for INFO. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

infoback to summary
public void info(String msg, Throwable t)

Log an exception (throwable) at the INFO level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

infoback to summary
public void info(Throwable t)

Log an exception (throwable) at the INFO level.

Parameters
t:Throwable

the exception (throwable) to log

isDebugEnabledback to summary
public boolean isDebugEnabled()

Is the logger instance enabled for the DEBUG level?

Returns:boolean

True if this Logger is enabled for the DEBUG level, false otherwise.

isEnabledback to summary
public boolean isEnabled(InternalLogLevel level)

Is the logger instance enabled for the specified level?

Returns:boolean

True if this Logger is enabled for the specified level, false otherwise.

isErrorEnabledback to summary
public boolean isErrorEnabled()

Is the logger instance enabled for the ERROR level?

Returns:boolean

True if this Logger is enabled for the ERROR level, false otherwise.

isInfoEnabledback to summary
public boolean isInfoEnabled()

Is the logger instance enabled for the INFO level?

Returns:boolean

True if this Logger is enabled for the INFO level, false otherwise.

isTraceEnabledback to summary
public boolean isTraceEnabled()

Is the logger instance enabled for the TRACE level?

Returns:boolean

True if this Logger is enabled for the TRACE level, false otherwise.

isWarnEnabledback to summary
public boolean isWarnEnabled()

Is the logger instance enabled for the WARN level?

Returns:boolean

True if this Logger is enabled for the WARN level, false otherwise.

logback to summary
public void log(InternalLogLevel level, String msg)

Log a message at the specified level.

Parameters
msg:String

the message string to be logged

logback to summary
public void log(InternalLogLevel level, String format, Object arg)

Log a message at the specified level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the specified level.

Parameters
format:String

the format string

arg:Object

the argument

logback to summary
public void log(InternalLogLevel level, String format, Object argA, Object argB)

Log a message at the specified level according to the specified format and arguments.

This form avoids superfluous object creation when the logger is disabled for the specified level.

Parameters
format:String

the format string

argA:Object

the first argument

argB:Object

the second argument

logback to summary
public void log(InternalLogLevel level, String format, Object... arguments)

Log a message at the specified level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the specified level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for the specified level. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

logback to summary
public void log(InternalLogLevel level, String msg, Throwable t)

Log an exception (throwable) at the specified level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

logback to summary
public void log(InternalLogLevel level, Throwable t)

Log an exception (throwable) at the specified level.

Parameters
t:Throwable

the exception (throwable) to log

nameback to summary
public String name()

Return the name of this InternalLogger instance.

Returns:String

name of this logger instance

traceback to summary
public void trace(String msg)

Log a message at the TRACE level.

Parameters
msg:String

the message string to be logged

traceback to summary
public void trace(String format, Object arg)

Log a message at the TRACE level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the TRACE level.

Parameters
format:String

the format string

arg:Object

the argument

traceback to summary
public void trace(String format, Object argA, Object argB)

Log a message at the TRACE level according to the specified format and arguments.

This form avoids superfluous object creation when the logger is disabled for the TRACE level.

Parameters
format:String

the format string

argA:Object

the first argument

argB:Object

the second argument

traceback to summary
public void trace(String format, Object... arguments)

Log a message at the TRACE level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the TRACE level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for TRACE. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

traceback to summary
public void trace(String msg, Throwable t)

Log an exception (throwable) at the TRACE level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

traceback to summary
public void trace(Throwable t)

Log an exception (throwable) at the TRACE level.

Parameters
t:Throwable

the exception (throwable) to log

warnback to summary
public void warn(String msg)

Log a message at the WARN level.

Parameters
msg:String

the message string to be logged

warnback to summary
public void warn(String format, Object arg)

Log a message at the WARN level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the WARN level.

Parameters
format:String

the format string

arg:Object

the argument

warnback to summary
public void warn(String format, Object... arguments)

Log a message at the WARN level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the WARN level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for WARN. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

warnback to summary
public void warn(String format, Object argA, Object argB)

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:String

the format string

argA:Object

the first argument

argB:Object

the second argument

warnback to summary
public void warn(String msg, Throwable t)

Log an exception (throwable) at the WARN level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

warnback to summary
public void warn(Throwable t)

Log an exception (throwable) at the WARN level.

Parameters
t:Throwable

the exception (throwable) to log