public class StdoutLogger extends FormattedLogger
strategy
Constructor and Description |
---|
StdoutLogger() |
Modifier and Type | Method and Description |
---|---|
protected java.io.PrintStream |
getStream() |
boolean |
isCategoryEnabled(Category category) |
void |
logException(java.lang.Exception e)
Logs the stacktrace of the exception.
|
void |
logText(java.lang.String text)
Logs the text.
|
logSQL, setStrategy
protected java.io.PrintStream getStream()
public void logException(java.lang.Exception e)
P6Logger
e
- exception holding the stacktrace to be logged.public void logText(java.lang.String text)
P6Logger
text
- to be loggedpublic boolean isCategoryEnabled(Category category)
category
- the category to be evaluated.true
if category is enabled. Otherwise returns
false