|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.devsphere.logging.AbstractLogger | +--com.devsphere.logging.PrintLogger
Logging mechanisms that uses a print stream or a writer.
AbstractLogger
Constructor Summary | |
PrintLogger(java.io.PrintStream stream)
Creates the print logger. |
|
PrintLogger(java.io.PrintWriter writer)
Creates the print logger. |
Method Summary | |
void |
close()
Closes the output stream / writer that is used by this logger. |
void |
flush()
Flushes the output stream / writer that is used by this logger. |
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 PrintLogger(java.io.PrintStream stream)
stream
- the output stream used for logging.NullPointerException
- if stream
is null
.public PrintLogger(java.io.PrintWriter writer)
writer
- the writer used for logging.NullPointerException
- if writer
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |