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

pack-priv Class Log4J2Logger

extends ExtendedLoggerWrapper
implements InternalLogger
Class Inheritance
All Implemented Interfaces
io.netty.util.internal.logging.InternalLogger
Imports
org.apache.logging.log4j.Level, .Logger, org.apache.logging.log4j.spi.ExtendedLogger, .ExtendedLoggerWrapper, java.security.AccessController, .PrivilegedAction

Field Summary

Modifier and TypeField and Description
private static final long
private static final boolean
Inherited from org.apache.logging.log4j.spi.ExtendedLoggerWrapper:
logger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
debug(Throwable
the exception (throwable) to log
t
)

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

Log an exception (throwable) at the DEBUG level.
public void
error(Throwable
the exception (throwable) to log
t
)

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

Log an exception (throwable) at the ERROR level.
public void
info(Throwable
the exception (throwable) to log
t
)

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

Log an exception (throwable) at the INFO level.
public boolean
isEnabled(InternalLogLevel level)

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

Is the logger instance enabled for the specified level?
public void
log(InternalLogLevel level, String
the message string to be logged
msg
)

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

Log a message at the specified level.
public void
log(InternalLogLevel level, String
the format string
format
,
Object
the argument
arg
)

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

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
)

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

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
)

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

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
)

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

Log an exception (throwable) at the specified level with an accompanying message.
public void
log(InternalLogLevel level, Throwable
the exception (throwable) to log
t
)

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

Log an exception (throwable) at the specified level.
public String
name()

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

Return the name of this InternalLogger instance.
private static Level
public void
trace(Throwable
the exception (throwable) to log
t
)

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

Log an exception (throwable) at the TRACE level.
public void
warn(Throwable
the exception (throwable) to log
t
)

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

Log an exception (throwable) at the WARN level.
Inherited from org.apache.logging.log4j.spi.ExtendedLoggerWrapper:
getLevelisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledisEnabledlogMessage

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.logging.log4j.spi.ExtendedLoggerWrapper.serialVersionUID.

VARARGS_ONLYback to summary
private static final boolean VARARGS_ONLY

Constructor Detail

Log4J2Loggerback to summary
pack-priv Log4J2Logger(Logger logger)

Method Detail

debugback to summary
public void debug(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.

Parameters
t:Throwable

the exception (throwable) to log

Annotations
@Override
errorback to summary
public void error(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.

Parameters
t:Throwable

the exception (throwable) to log

Annotations
@Override
infoback to summary
public void info(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.

Parameters
t:Throwable

the exception (throwable) to log

Annotations
@Override
isEnabledback to summary
public boolean isEnabled(InternalLogLevel level)

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

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

Is the logger instance enabled for the specified level?

Returns:boolean

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

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

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

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

Log a message at the specified level.

Parameters
msg:String

the message string to be logged

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Log an exception (throwable) at the specified level.

Parameters
t:Throwable

the exception (throwable) to log

Annotations
@Override
nameback to summary
public String name()

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

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

Return the name of this InternalLogger instance.

Returns:String

name of this logger instance

Annotations
@Override
toLevelback to summary
private static Level toLevel(InternalLogLevel level)
traceback to summary
public void trace(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.

Parameters
t:Throwable

the exception (throwable) to log

Annotations
@Override
warnback to summary
public void warn(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.

Parameters
t:Throwable

the exception (throwable) to log

Annotations
@Override