Top Description Fields Constructors Methods
io.netty.util.internal.logging

pack-priv final Class LocationAwareSlf4JLogger

extends AbstractInternalLogger
Class Inheritance
Imports
org.slf4j.spi.LocationAwareLogger

SLF4J logger which is location aware and so will log the correct origin of the logging event by filter out the wrapper itself.

Field Summary

Modifier and TypeField and Description
pack-priv static final String
private final transient LocationAwareLogger
private static final long
Inherited from io.netty.util.internal.logging.AbstractInternalLogger:
EXCEPTION_MESSAGE

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Implements io.netty.util.internal.logging.InternalLogger.debug.

Log a message at the DEBUG level.
public void
debug(String
the format string
format
,
Object
the argument
arg
)

Implements io.netty.util.internal.logging.InternalLogger.debug.

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
)

Implements io.netty.util.internal.logging.InternalLogger.debug.

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
argArray
)

Implements io.netty.util.internal.logging.InternalLogger.debug.

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
)

Implements io.netty.util.internal.logging.InternalLogger.debug.

Log an exception (throwable) at the DEBUG level with an accompanying message.
public void
error(String
the message string to be logged
msg
)

Implements io.netty.util.internal.logging.InternalLogger.error.

Log a message at the ERROR level.
public void
error(String
the format string
format
,
Object
the argument
arg
)

Implements io.netty.util.internal.logging.InternalLogger.error.

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
)

Implements io.netty.util.internal.logging.InternalLogger.error.

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
argArray
)

Implements io.netty.util.internal.logging.InternalLogger.error.

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
)

Implements io.netty.util.internal.logging.InternalLogger.error.

Log an exception (throwable) at the ERROR level with an accompanying message.
public void
info(String
the message string to be logged
msg
)

Implements io.netty.util.internal.logging.InternalLogger.info.

Log a message at the INFO level.
public void
info(String
the format string
format
,
Object
the argument
arg
)

Implements io.netty.util.internal.logging.InternalLogger.info.

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
)

Implements io.netty.util.internal.logging.InternalLogger.info.

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
argArray
)

Implements io.netty.util.internal.logging.InternalLogger.info.

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
)

Implements io.netty.util.internal.logging.InternalLogger.info.

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

Implements io.netty.util.internal.logging.InternalLogger.isDebugEnabled.

Is the logger instance enabled for the DEBUG level?
public boolean
isErrorEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isErrorEnabled.

Is the logger instance enabled for the ERROR level?
public boolean
isInfoEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isInfoEnabled.

Is the logger instance enabled for the INFO level?
public boolean
isTraceEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isTraceEnabled.

Is the logger instance enabled for the TRACE level?
public boolean
isWarnEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isWarnEnabled.

Is the logger instance enabled for the WARN level?
private void
log(final int level, final String message)

private void
log(final int level, final String message, Throwable cause)

private void
log(final int level, final FormattingTuple tuple)

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

Implements io.netty.util.internal.logging.InternalLogger.trace.

Log a message at the TRACE level.
public void
trace(String
the format string
format
,
Object
the argument
arg
)

Implements io.netty.util.internal.logging.InternalLogger.trace.

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
)

Implements io.netty.util.internal.logging.InternalLogger.trace.

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
argArray
)

Implements io.netty.util.internal.logging.InternalLogger.trace.

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
)

Implements io.netty.util.internal.logging.InternalLogger.trace.

Log an exception (throwable) at the TRACE level with an accompanying message.
public void
warn(String
the message string to be logged
msg
)

Implements io.netty.util.internal.logging.InternalLogger.warn.

Log a message at the WARN level.
public void
warn(String
the format string
format
,
Object
the argument
arg
)

Implements io.netty.util.internal.logging.InternalLogger.warn.

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
argArray
)

Implements io.netty.util.internal.logging.InternalLogger.warn.

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
)

Implements io.netty.util.internal.logging.InternalLogger.warn.

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
)

Implements io.netty.util.internal.logging.InternalLogger.warn.

Log an exception (throwable) at the WARN level with an accompanying message.
Inherited from io.netty.util.internal.logging.AbstractInternalLogger:
debugerrorinfoisEnabledloglogloglogloglognamereadResolvetoStringtracewarn

Field Detail

FQCNback to summary
pack-priv static final String FQCN
loggerback to summary
private final transient LocationAwareLogger logger
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.netty.util.internal.logging.AbstractInternalLogger.serialVersionUID.

Constructor Detail

LocationAwareSlf4JLoggerback to summary
pack-priv LocationAwareSlf4JLogger(LocationAwareLogger logger)

Method Detail

debugback to summary
public void debug(String msg)

Implements io.netty.util.internal.logging.InternalLogger.debug.

Doc from io.netty.util.internal.logging.InternalLogger.debug.

Log a message at the DEBUG level.

Parameters
msg:String

the message string to be logged

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

Implements io.netty.util.internal.logging.InternalLogger.debug.

Doc from io.netty.util.internal.logging.InternalLogger.debug.

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

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

Implements io.netty.util.internal.logging.InternalLogger.debug.

Doc from io.netty.util.internal.logging.InternalLogger.debug.

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

Annotations
@Override
debugback to summary
public void debug(String format, Object... argArray)

Implements io.netty.util.internal.logging.InternalLogger.debug.

Doc from io.netty.util.internal.logging.InternalLogger.debug.

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

argArray:Object[]

a list of 3 or more arguments

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

Implements io.netty.util.internal.logging.InternalLogger.debug.

Doc from io.netty.util.internal.logging.InternalLogger.debug.

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

Annotations
@Override
errorback to summary
public void error(String msg)

Implements io.netty.util.internal.logging.InternalLogger.error.

Doc from io.netty.util.internal.logging.InternalLogger.error.

Log a message at the ERROR level.

Parameters
msg:String

the message string to be logged

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

Implements io.netty.util.internal.logging.InternalLogger.error.

Doc from io.netty.util.internal.logging.InternalLogger.error.

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

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

Implements io.netty.util.internal.logging.InternalLogger.error.

Doc from io.netty.util.internal.logging.InternalLogger.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:String

the format string

argA:Object

the first argument

argB:Object

the second argument

Annotations
@Override
errorback to summary
public void error(String format, Object... argArray)

Implements io.netty.util.internal.logging.InternalLogger.error.

Doc from io.netty.util.internal.logging.InternalLogger.error.

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

argArray:Object[]

a list of 3 or more arguments

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

Implements io.netty.util.internal.logging.InternalLogger.error.

Doc from io.netty.util.internal.logging.InternalLogger.error.

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

Annotations
@Override
infoback to summary
public void info(String msg)

Implements io.netty.util.internal.logging.InternalLogger.info.

Doc from io.netty.util.internal.logging.InternalLogger.info.

Log a message at the INFO level.

Parameters
msg:String

the message string to be logged

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

Implements io.netty.util.internal.logging.InternalLogger.info.

Doc from io.netty.util.internal.logging.InternalLogger.info.

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

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

Implements io.netty.util.internal.logging.InternalLogger.info.

Doc from io.netty.util.internal.logging.InternalLogger.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:String

the format string

argA:Object

the first argument

argB:Object

the second argument

Annotations
@Override
infoback to summary
public void info(String format, Object... argArray)

Implements io.netty.util.internal.logging.InternalLogger.info.

Doc from io.netty.util.internal.logging.InternalLogger.info.

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

argArray:Object[]

a list of 3 or more arguments

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

Implements io.netty.util.internal.logging.InternalLogger.info.

Doc from io.netty.util.internal.logging.InternalLogger.info.

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

Annotations
@Override
isDebugEnabledback to summary
public boolean isDebugEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isDebugEnabled.

Doc from io.netty.util.internal.logging.InternalLogger.isDebugEnabled.

Is the logger instance enabled for the DEBUG level?

Returns:boolean

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

Annotations
@Override
isErrorEnabledback to summary
public boolean isErrorEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isErrorEnabled.

Doc from io.netty.util.internal.logging.InternalLogger.isErrorEnabled.

Is the logger instance enabled for the ERROR level?

Returns:boolean

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

Annotations
@Override
isInfoEnabledback to summary
public boolean isInfoEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isInfoEnabled.

Doc from io.netty.util.internal.logging.InternalLogger.isInfoEnabled.

Is the logger instance enabled for the INFO level?

Returns:boolean

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

Annotations
@Override
isTraceEnabledback to summary
public boolean isTraceEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isTraceEnabled.

Doc from io.netty.util.internal.logging.InternalLogger.isTraceEnabled.

Is the logger instance enabled for the TRACE level?

Returns:boolean

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

Annotations
@Override
isWarnEnabledback to summary
public boolean isWarnEnabled()

Implements io.netty.util.internal.logging.InternalLogger.isWarnEnabled.

Doc from io.netty.util.internal.logging.InternalLogger.isWarnEnabled.

Is the logger instance enabled for the WARN level?

Returns:boolean

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

Annotations
@Override
logback to summary
private void log(final int level, final String message)
logback to summary
private void log(final int level, final String message, Throwable cause)
logback to summary
private void log(final int level, final FormattingTuple tuple)
traceback to summary
public void trace(String msg)

Implements io.netty.util.internal.logging.InternalLogger.trace.

Doc from io.netty.util.internal.logging.InternalLogger.trace.

Log a message at the TRACE level.

Parameters
msg:String

the message string to be logged

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

Implements io.netty.util.internal.logging.InternalLogger.trace.

Doc from io.netty.util.internal.logging.InternalLogger.trace.

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

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

Implements io.netty.util.internal.logging.InternalLogger.trace.

Doc from io.netty.util.internal.logging.InternalLogger.trace.

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

Annotations
@Override
traceback to summary
public void trace(String format, Object... argArray)

Implements io.netty.util.internal.logging.InternalLogger.trace.

Doc from io.netty.util.internal.logging.InternalLogger.trace.

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

argArray:Object[]

a list of 3 or more arguments

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

Implements io.netty.util.internal.logging.InternalLogger.trace.

Doc from io.netty.util.internal.logging.InternalLogger.trace.

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

Annotations
@Override
warnback to summary
public void warn(String msg)

Implements io.netty.util.internal.logging.InternalLogger.warn.

Doc from io.netty.util.internal.logging.InternalLogger.warn.

Log a message at the WARN level.

Parameters
msg:String

the message string to be logged

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

Implements io.netty.util.internal.logging.InternalLogger.warn.

Doc from io.netty.util.internal.logging.InternalLogger.warn.

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

Annotations
@Override
warnback to summary
public void warn(String format, Object... argArray)

Implements io.netty.util.internal.logging.InternalLogger.warn.

Doc from io.netty.util.internal.logging.InternalLogger.warn.

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

argArray:Object[]

a list of 3 or more arguments

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

Implements io.netty.util.internal.logging.InternalLogger.warn.

Doc from io.netty.util.internal.logging.InternalLogger.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:String

the format string

argA:Object

the first argument

argB:Object

the second argument

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

Implements io.netty.util.internal.logging.InternalLogger.warn.

Doc from io.netty.util.internal.logging.InternalLogger.warn.

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

Annotations
@Override