Constructor and Description |
---|
DefaultOutputLoggerImplementation()
Default constructor.
|
DefaultOutputLoggerImplementation(PrintStream aOut,
PrintStream aErr)
Constructor that takes two PrintStreams to output to.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public DefaultOutputLoggerImplementation()
public DefaultOutputLoggerImplementation(PrintStream aOut, PrintStream aErr)
aOut
- PrintStream for normal and timed messages.aErr
- PrintStream for error messages.public void logTime(String aMessage)
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.Copyright © 2016. All rights reserved.