|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.general.DefaultOutputLoggerImplementation
public class DefaultOutputLoggerImplementation
This class implements a default logger (for debugging purposes).
Constructor Summary | |
---|---|
DefaultOutputLoggerImplementation()
Default constructor. |
|
DefaultOutputLoggerImplementation(PrintStream aOut,
PrintStream aErr)
Constructor that takes two PrintStreams to output to. |
Method Summary | |
---|---|
void |
logExceptionalEvent(String aMessage)
This method allows the logging of an exceptional event. |
void |
logNormalEvent(String aMessage)
This method allows the logging of a 'normal' event. |
void |
logTime(String aMessage)
This method allows the caller to have the logger record a timestamp (implementation specific format and content, although 'date - time' is a good rule of thumb) along with the specified message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultOutputLoggerImplementation()
public DefaultOutputLoggerImplementation(PrintStream aOut, PrintStream aErr)
aOut
- PrintStream for normal and timed messages.aErr
- PrintStream for error messages.Method Detail |
---|
public void logTime(String aMessage)
logTime
in interface Logger
aMessage
- String with the message to display after the timestamp.public void logExceptionalEvent(String aMessage)
logExceptionalEvent
in interface Logger
aMessage
- String with the exceptional message to log.public void logNormalEvent(String aMessage)
logNormalEvent
in interface Logger
aMessage
- String with a normal operation message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |