Package org.slf4j.cal10n
Class LocLogger
- java.lang.Object
-
- org.slf4j.ext.LoggerWrapper
-
- org.slf4j.cal10n.LocLogger
-
- All Implemented Interfaces:
Logger
public class LocLogger extends LoggerWrapper implements Logger
A logger specialized in localized logging. Localization is based in the CAL10N project.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringFQCN(package private) ch.qos.cal10n.IMessageConveyorimc(package private) static MarkerLOCALIZEDEvery localized message logged by a LocLogger will bear this marker.-
Fields inherited from class org.slf4j.ext.LoggerWrapper
instanceofLAL, logger
-
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the DEBUG level.voiderror(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the ERROR level.voidinfo(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the INFO level.voidtrace(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the TRACE level.voidwarn(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the WARN level.-
Methods inherited from class org.slf4j.ext.LoggerWrapper
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.slf4j.Logger
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
-
-
-
Field Detail
-
FQCN
private static final java.lang.String FQCN
-
LOCALIZED
static Marker LOCALIZED
Every localized message logged by a LocLogger will bear this marker. It allows marker-aware implementations to perform additional processing on localized messages.
-
imc
final ch.qos.cal10n.IMessageConveyor imc
-
-
Constructor Detail
-
LocLogger
public LocLogger(Logger logger, ch.qos.cal10n.IMessageConveyor imc)
-
-
Method Detail
-
trace
public void trace(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the TRACE level.- Parameters:
key- the key used for localizationargs- optional arguments
-
debug
public void debug(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the DEBUG level.- Parameters:
key- the key used for localizationargs- optional arguments
-
info
public void info(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the INFO level.- Parameters:
key- the key used for localizationargs- optional arguments
-
warn
public void warn(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the WARN level.- Parameters:
key- the key used for localizationargs- optional arguments
-
error
public void error(java.lang.Enum<?> key, java.lang.Object... args)Log a localized message at the ERROR level.- Parameters:
key- the key used for localizationargs- optional arguments
-
-