Top Fields Constructors Methods
org.jboss.logging

pack-priv final Class Slf4jLocationAwareLogger

extends Logger
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException, .Method, .UndeclaredThrowableException, java.text.MessageFormat, org.slf4j.spi.LocationAwareLogger

Field Summary

Modifier and TypeField and Description
private static final Object[]
private static final Method
private final LocationAwareLogger
private static final boolean
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

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

private static void
doLog(LocationAwareLogger logger, String className, int level, String text, Throwable thrown)

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

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 int
Inherited from org.jboss.logging.Logger:
debugdebugdebugdebugdebugdebugdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugvdebugvdebugvdebugvdebugvdebugvdebugvdebugverrorerrorerrorerrorerrorerrorerrorferrorferrorferrorferrorferrorferrorferrorferrorverrorverrorverrorverrorverrorverrorverrorvfatalfatalfatalfatalfatalfatalfatalffatalffatalffatalffatalffatalffatalffatalffatalvfatalvfatalvfatalvfatalvfatalvfatalvfatalvgetLoggergetLoggergetLoggergetLoggergetMessageLoggergetMessageLoggergetMessageLoggergetMessageLoggergetNameinfoinfoinfoinfoinfoinfoinfofinfofinfofinfofinfofinfofinfofinfofinfovinfovinfovinfovinfovinfovinfovinfovisDebugEnabledisInfoEnabledisTraceEnabledlogloglogloglogloglogflogflogflogflogflogflogflogflogflogflogflogflogvlogvlogvlogvlogvlogvlogvlogvlogvlogvlogvlogvtracetracetracetracetracetracetraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftracevtracevtracevtracevtracevtracevtracevtracevwarnwarnwarnwarnwarnwarnwarnfwarnfwarnfwarnfwarnfwarnfwarnfwarnfwarnvwarnvwarnvwarnvwarnvwarnvwarnvwarnvwriteReplace

Field Detail

EMPTYback to summary
private static final Object[] EMPTY
LOG_METHODback to summary
private static final Method LOG_METHOD
loggerback to summary
private final LocationAwareLogger logger
POST_1_6back to summary
private static final boolean POST_1_6
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.jboss.logging.Logger.serialVersionUID.

Constructor Detail

Slf4jLocationAwareLoggerback to summary
pack-priv Slf4jLocationAwareLogger(final String name, final LocationAwareLogger logger)

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

doLogback to summary
private static void doLog(LocationAwareLogger logger, String className, int level, String text, Throwable thrown)
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

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

translateback to summary
private static int translate(Logger.Level level)