Class DynamicLocationAwareLogger
java.lang.Object
org.exoplatform.services.log.impl.DynamicLocationAwareLogger
This is an utility class allowing to use in runtime either 1.5.x or
1.6.x slf4j libraries. As their log method signature differs,
we use reflection library to invoke it.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicLocationAwareLogger(org.slf4j.spi.LocationAwareLogger logger) Simple constructor with one parameter is used to pull out logMethodan determine which version of slf4j library is currently used. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanvoidPrinting method with support for location information.
-
Constructor Details
-
DynamicLocationAwareLogger
public DynamicLocationAwareLogger(org.slf4j.spi.LocationAwareLogger logger) Simple constructor with one parameter is used to pull out logMethodan determine which version of slf4j library is currently used.- Parameters:
logger- location aware logger to be wrapped
-
-
Method Details
-
log
Printing method with support for location information. Encapsulates slf4j lib logMethodinvocation and passing it the correct parameters. -
isDebugEnabled
public boolean isDebugEnabled() -
isErrorEnabled
public boolean isErrorEnabled() -
isFatalEnabled
public boolean isFatalEnabled() -
isInfoEnabled
public boolean isInfoEnabled() -
isTraceEnabled
public boolean isTraceEnabled() -
isWarnEnabled
public boolean isWarnEnabled()
-