|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.util.monolog.lib.LoggableImpl
public class LoggableImpl
This class is a basic implementation of Loggable interface. This class holds reference to the logger and the logger factory.
Field Summary | |
---|---|
protected boolean |
debug
|
protected Logger |
logger
|
protected LoggerFactory |
loggerFactory
|
Constructor Summary | |
---|---|
LoggableImpl()
|
Method Summary | |
---|---|
void |
assignLogger(java.lang.Object o)
Assign the current logger and the current loggerFactory to an object or to each element if o is a structure. |
void |
assignLogger(java.lang.Object o,
Logger l)
Assign a logger and the current loggerFactory to an object or to each element if o is a structure. |
java.lang.String |
getExpectedLoggerName()
|
Logger |
getLogger()
Retrieves the logger instance used |
LoggerFactory |
getLoggerFactory()
Retrieves the logger factory instance used |
java.lang.String |
getLoggerName()
|
java.lang.String |
getLoggerNameSuffix()
|
boolean |
isDebug()
Indicates if the DEBUG level is enabled for the current logger. |
void |
setLogger(Logger l)
Assigns the logger instance to use |
void |
setLoggerFactory(LoggerFactory lf)
Assigns the logger factory instance to use |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean debug
protected Logger logger
protected LoggerFactory loggerFactory
Constructor Detail |
---|
public LoggableImpl()
Method Detail |
---|
public Logger getLogger()
Loggable
getLogger
in interface Loggable
public LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory
in interface Loggable
public void setLogger(Logger l)
Loggable
setLogger
in interface Loggable
public void setLoggerFactory(LoggerFactory lf)
Loggable
setLoggerFactory
in interface Loggable
public java.lang.String getLoggerName()
public java.lang.String getExpectedLoggerName()
public java.lang.String getLoggerNameSuffix()
public boolean isDebug()
public void assignLogger(java.lang.Object o)
public void assignLogger(java.lang.Object o, Logger l)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |