Top Fields Constructors Methods
org.jboss.logging

pack-priv final Class Log4j2Logger

extends Logger
Class Inheritance
Imports
org.apache.logging.log4j.LogManager, .LoggingException, org.apache.logging.log4j.message.MessageFormatMessageFactory, .StringFormattedMessage, org.apache.logging.log4j.spi.AbstractLogger

Field Summary

Modifier and TypeField and Description
private final AbstractLogger
private final MessageFormatMessageFactory
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
Log4j2Logger(final String name)

Method Summary

Modifier and TypeMethod and Description
protected void
doLog(final Logger.Level
the level
level
,
final String
the logger class name
loggerClassName
,
final Object
the message to log
message
,
final Object[]
the parameters of the message
parameters
,
final Throwable
the exception which was thrown, if any
thrown
)

Implements abstract org.jboss.logging.Logger.doLog.

Implementation log method (standard parameter formatting).

protected void
doLogf(final Logger.Level
the level
level
,
final String
the logger class name
loggerClassName
,
final String
the format string to log
format
,
final Object[]
the parameters of the message
parameters
,
final Throwable
the exception which was thrown, if any
thrown
)

Implements abstract org.jboss.logging.Logger.doLogf.

Implementation log method (printf formatting).

private static Level
infoOrHigher(final Logger.Level level)

public boolean
isEnabled(final Logger.Level
the level to check for
level
)

Implements org.jboss.logging.BasicLogger.isEnabled.

Check to see if the given level is enabled for this logger.

private static Level
translate(final Logger.Level level)

Inherited from org.jboss.logging.Logger:
debugdebugdebugdebugdebugdebugdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugvdebugvdebugvdebugvdebugvdebugvdebugvdebugverrorerrorerrorerrorerrorerrorerrorferrorferrorferrorferrorferrorferrorferrorferrorverrorverrorverrorverrorverrorverrorverrorvfatalfatalfatalfatalfatalfatalfatalffatalffatalffatalffatalffatalffatalffatalffatalvfatalvfatalvfatalvfatalvfatalvfatalvfatalvgetLoggergetLoggergetLoggergetLoggergetMessageLoggergetMessageLoggergetMessageLoggergetMessageLoggergetNameinfoinfoinfoinfoinfoinfoinfofinfofinfofinfofinfofinfofinfofinfofinfovinfovinfovinfovinfovinfovinfovinfovisDebugEnabledisInfoEnabledisTraceEnabledlogloglogloglogloglogflogflogflogflogflogflogflogflogflogflogflogflogvlogvlogvlogvlogvlogvlogvlogvlogvlogvlogvlogvtracetracetracetracetracetracetraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftracevtracevtracevtracevtracevtracevtracevtracevwarnwarnwarnwarnwarnwarnwarnfwarnfwarnfwarnfwarnfwarnfwarnfwarnfwarnvwarnvwarnvwarnvwarnvwarnvwarnvwarnvwriteReplace

Field Detail

loggerback to summary
private final AbstractLogger logger
messageFactoryback to summary
private final MessageFormatMessageFactory messageFactory
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.jboss.logging.Logger.serialVersionUID.

Constructor Detail

Log4j2Loggerback to summary
pack-priv Log4j2Logger(final String name)

Method Detail

doLogback to summary
protected void doLog(final Logger.Level level, final String loggerClassName, final Object message, final Object[] parameters, final Throwable thrown)

Implements abstract org.jboss.logging.Logger.doLog.

Doc from org.jboss.logging.Logger.doLog.

Implementation log method (standard parameter formatting).

Parameters
level:Logger.Level

the level

loggerClassName:String

the logger class name

message:Object

the message to log

parameters:Object[]

the parameters of the message

thrown:Throwable

the exception which was thrown, if any

Annotations
@Override
doLogfback to summary
protected void doLogf(final Logger.Level level, final String loggerClassName, final String format, final Object[] parameters, final Throwable thrown)

Implements abstract org.jboss.logging.Logger.doLogf.

Doc from org.jboss.logging.Logger.doLogf.

Implementation log method (printf formatting).

Parameters
level:Logger.Level

the level

loggerClassName:String

the logger class name

format:String

the format string to log

parameters:Object[]

the parameters of the message

thrown:Throwable

the exception which was thrown, if any

Annotations
@Override
infoOrHigherback to summary
private static Level infoOrHigher(final Logger.Level level)
isEnabledback to summary
public boolean isEnabled(final Logger.Level level)

Implements org.jboss.logging.BasicLogger.isEnabled.

Doc from org.jboss.logging.BasicLogger.isEnabled.

Check to see if the given level is enabled for this logger.

Parameters
level:Logger.Level

the level to check for

Returns:boolean

true if messages may be logged at the given level, false otherwise

Annotations
@Override
translateback to summary
private static Level translate(final Logger.Level level)