|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.logging.ChainedLogger
public class ChainedLogger
Straight forward implemented which simply delegates every log-statement to a list of other other loggers.
| Constructor Summary | |
|---|---|
ChainedLogger()
|
|
ChainedLogger(Logger... ls)
|
|
| Method Summary | |
|---|---|
ChainedLogger |
addLogger(Logger l)
|
boolean |
containsLogger(Logger l)
|
void |
debug(Object m)
Logs the message m with debug priority. |
void |
debug(Object m,
Throwable t)
|
void |
error(Object m)
Logs the message m with error priority. |
void |
error(Object m,
Throwable t)
|
void |
fatal(Object m)
Logs the message m with fatal priority. |
void |
fatal(Object m,
Throwable t)
|
List<Logger> |
getLoggers()
|
void |
info(Object m)
Logs the message m with info priority. |
void |
info(Object m,
Throwable t)
|
boolean |
isDebugEnabled()
Returns true if for this category (Logger), a call to debug (or trace) would do something. |
boolean |
isEnabledFor(Level l)
|
boolean |
isServiceEnabled()
Returns true if for this category (Logger), a call to service (or debug or trace) would do something. |
boolean |
isTraceEnabled()
Returns true if for this category (Logger), a call to trace would do something. |
void |
readExternal(ObjectInput in)
|
boolean |
removeLogger(Logger l)
|
void |
service(Object m)
Logs the message m with service priority. |
void |
service(Object m,
Throwable t)
|
void |
setLevel(Level p)
If you want to override the level in the configuration file fixed for this category, you can do it with this method. |
String |
toString()
|
void |
trace(Object m)
Logs the message m with trace priority. |
void |
trace(Object m,
Throwable t)
|
void |
warn(Object m)
Logs the message m with warn priority. |
void |
warn(Object m,
Throwable t)
|
void |
writeExternal(ObjectOutput stream)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedLogger()
public ChainedLogger(Logger... ls)
| Method Detail |
|---|
public List<Logger> getLoggers()
public ChainedLogger addLogger(Logger l)
public boolean containsLogger(Logger l)
public boolean removeLogger(Logger l)
public void trace(Object m)
Logger
trace in interface LoggerLogger.debug(Object)
public void trace(Object m,
Throwable t)
trace in interface Loggerpublic void debug(Object m)
Logger
debug in interface Logger
public void debug(Object m,
Throwable t)
debug in interface Loggerpublic void service(Object m)
Logger
service in interface Logger
public void service(Object m,
Throwable t)
service in interface Loggerpublic void info(Object m)
Logger
info in interface Logger
public void info(Object m,
Throwable t)
info in interface Loggerpublic void warn(Object m)
Logger
warn in interface Logger
public void warn(Object m,
Throwable t)
warn in interface Loggerpublic void error(Object m)
Logger
error in interface Logger
public void error(Object m,
Throwable t)
error in interface Loggerpublic void fatal(Object m)
Logger
fatal in interface Logger
public void fatal(Object m,
Throwable t)
fatal in interface Loggerpublic boolean isTraceEnabled()
Logger
isTraceEnabled in interface Loggerpublic boolean isDebugEnabled()
Logger
isDebugEnabled in interface Loggerpublic boolean isServiceEnabled()
Logger
isServiceEnabled in interface Loggerpublic boolean isEnabledFor(Level l)
isEnabledFor in interface Loggerpublic void setLevel(Level p)
Logger
setLevel in interface Loggerp - The level of the priority. One of the constants
Level.TRACE, Level.DEBUG, Level.SERVICE, Level.INFO,
Level.WARN, Level.ERROR or Level.FATAL.public String toString()
toString in class Object
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput stream)
throws IOException
writeExternal in interface ExternalizableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||