org.schmant.report
Class StdoutReport

java.lang.Object
  extended by org.schmant.report.AbstractReport
      extended by org.schmant.report.AbstractPrintingReport
          extended by 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

Constructor Summary
StdoutReport(String identifier, ReportLineFormatter llf)
           
 
Method Summary
protected  void printLine(Level l, String line)
          Print the formatted line.
protected  void printStacktrace(Level l, String s)
          Print a stacktrace.
 
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 org.schmant.report.AbstractReport
close, getLevel, isDebugReported, isErrorReported, isInfoReported, isLevelReported, isOpen, isTraceReported, isWarnReported, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdoutReport

public StdoutReport(String identifier,
                    ReportLineFormatter llf)
Method Detail

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.