|
Devsphere.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.devsphere.logging.AbstractLogger | +--com.devsphere.logging.CompoundLogger
Logging mechanism that redirects any operation to two other loggers.
AbstractLogger
Constructor Summary | |
CompoundLogger(AbstractLogger logger1,
AbstractLogger logger2)
Creates a compound logger. |
Method Summary | |
void |
close()
Closes the two loggers. |
void |
flush()
Flushes the two loggers. |
void |
log(java.lang.String message)
Logs a message. |
void |
log(java.lang.String message,
java.lang.Throwable throwable)
Logs a message and an exception. |
void |
log(java.lang.Throwable throwable)
Logs an exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompoundLogger(AbstractLogger logger1, AbstractLogger logger2)
logger1
- the first logger.logger2
- the second logger.
java.lang.NullPointerException
- if any of the logger parameters
is null
.Method Detail |
public void log(java.lang.String message)
log
in class AbstractLogger
message
- the message that has to be logged.public void log(java.lang.Throwable throwable)
log
in class AbstractLogger
throwable
- the exception that has to be logged.public void log(java.lang.String message, java.lang.Throwable throwable)
log
in class AbstractLogger
message
- the message that has to be logged.throwable
- the exception that has to be logged.public void flush()
flush
in class AbstractLogger
public void close()
close
in class AbstractLogger
|
Devsphere.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |