public class ChainedLogger extends Object implements Logger, Externalizable
| Constructor and Description |
|---|
ChainedLogger() |
ChainedLogger(Logger... ls) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public ChainedLogger()
public ChainedLogger(Logger... ls)
public ChainedLogger addLogger(Logger l)
public boolean containsLogger(Logger l)
public boolean removeLogger(Logger l)
public void trace(Object m)
Loggertrace in interface LoggerLogger.debug(Object)public void debug(Object m)
Loggerpublic void service(Object m)
Loggerpublic void info(Object m)
Loggerpublic void warn(Object m)
Loggerpublic void error(Object m)
Loggerpublic void fatal(Object m)
Loggerpublic boolean isTraceEnabled()
LoggerisTraceEnabled in interface Loggerpublic boolean isDebugEnabled()
LoggerisDebugEnabled in interface Loggerpublic boolean isServiceEnabled()
LoggerisServiceEnabled in interface Loggerpublic boolean isEnabledFor(Level l)
isEnabledFor in interface Loggerpublic void setLevel(Level p)
Loggerpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput stream) throws IOException
writeExternal in interface ExternalizableIOExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}