Top Description Fields Methods
org.slf4j.spi

public Interface LocationAwareLogger

extends Logger
Imports
org.slf4j.Logger, .Marker

An optional interface helping integration with logging systems capable of extracting location information. This interface is mainly used by SLF4J bridges such as jcl-over-slf4j, jul-to-slf4j and log4j-over-slf4j or Logger wrappers which need to provide hints so that the underlying logging system can extract the correct location information (method name, line number).
Author
Ceki Gülcü
Since
1.3

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
Inherited from org.slf4j.Logger:
ROOT_LOGGER_NAME

Method Summary

Modifier and TypeMethod and Description
public void
log(Marker
The marker to be used for this event, may be null.
marker
,
String
The fully qualified class name of the logger instance, typically the logger class, logger bridge or a logger wrapper.
fqcn
,
int
One of the level integers defined in this interface
level
,
String
The message for the log event
message
,
Object[] argArray, Throwable
Throwable associated with the log event, may be null.
t
)

Printing method with support for location information.

Inherited from org.slf4j.Logger:
atDebugatErroratInfoatLevelatTraceatWarndebugdebugdebugdebugdebugdebugdebugdebugdebugdebugerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorgetNameinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoisDebugEnabledisDebugEnabledisEnabledForLevelisErrorEnabledisErrorEnabledisInfoEnabledisInfoEnabledisTraceEnabledisTraceEnabledisWarnEnabledisWarnEnabledmakeLoggingEventBuildertracetracetracetracetracetracetracetracetracetracewarnwarnwarnwarnwarnwarnwarnwarnwarnwarn

Field Detail

DEBUG_INTback to summary
public static final int DEBUG_INT
ERROR_INTback to summary
public static final int ERROR_INT
INFO_INTback to summary
public static final int INFO_INT
TRACE_INTback to summary
public static final int TRACE_INT
WARN_INTback to summary
public static final int WARN_INT

Method Detail

logback to summary
public void log(Marker marker, String fqcn, int level, String message, Object[] argArray, Throwable t)

Printing method with support for location information.

Parameters
marker:Marker

The marker to be used for this event, may be null.

fqcn:String

The fully qualified class name of the logger instance, typically the logger class, logger bridge or a logger wrapper.

level:int

One of the level integers defined in this interface

message:String

The message for the log event

t:Throwable

Throwable associated with the log event, may be null.