|
eXo Kernel :: Commons Utils 2.5.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.log.impl.DynamicLocationAwareLogger
public class 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 | |
|---|---|
DynamicLocationAwareLogger(org.slf4j.spi.LocationAwareLogger logger)
Simple constructor with one parameter is used to pull out log Method
an determine which version of slf4j library is currently used. |
|
| Method Summary | |
|---|---|
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isFatalEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isTraceEnabled()
|
boolean |
isWarnEnabled()
|
void |
log(org.slf4j.Marker marker,
String fqcn,
int level,
String message,
Throwable t)
Printing method with support for location information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicLocationAwareLogger(org.slf4j.spi.LocationAwareLogger logger)
Method
an determine which version of slf4j library is currently used.
logger - location aware logger to be wrapped| Method Detail |
|---|
public void log(org.slf4j.Marker marker,
String fqcn,
int level,
String message,
Throwable t)
Method invocation and passing it the correct parameters.
public boolean isDebugEnabled()
public boolean isErrorEnabled()
public boolean isFatalEnabled()
public boolean isInfoEnabled()
public boolean isTraceEnabled()
public boolean isWarnEnabled()
|
eXo Kernel :: Commons Utils 2.5.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||