org.schmant.report
Class StdoutReport
java.lang.Object
org.schmant.report.AbstractReport
org.schmant.report.AbstractPrintingReport
org.schmant.report.StdoutReport
- All Implemented Interfaces:
- Report
public class StdoutReport
- extends AbstractPrintingReport
This Report
logs messages to stdout and stderr. Messages of severity
Level.WARNING
or higher is logged to stderr.
- Since:
- 0.5
- Author:
- Karl Gustafsson
Methods inherited from class org.schmant.report.AbstractPrintingReport |
debug, error, error, getIdentifier, getReportLineFormatter, getSeverityText, getStackTraceWriter, info, log, log, trace, warn, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StdoutReport
public StdoutReport(String identifier,
ReportLineFormatter llf)
printLine
protected void printLine(Level l,
String line)
- Description copied from class:
AbstractPrintingReport
- Print the formatted line.
- Specified by:
printLine
in class AbstractPrintingReport
- Parameters:
l
- The severity of the log message. It is already verified that log
messages of this severity should be printed.line
- The formatted log line.
printStacktrace
protected void printStacktrace(Level l,
String s)
- Description copied from class:
AbstractPrintingReport
- Print a stacktrace.
- Specified by:
printStacktrace
in class AbstractPrintingReport
- Parameters:
l
- The severity of the log message. It is already verified that log
messages of this severity should be printed.s
- The formatted stack trace, including newlines.