org.schmant.report
Class AsynchronousStdoutReportFactory
java.lang.Object
org.schmant.report.AsynchronousStdoutReportFactory
- All Implemented Interfaces:
- ReportFactory
public final class AsynchronousStdoutReportFactory
- extends Object
- implements ReportFactory
This report factory creates an asynchronous report that logs to stdout and
stderr.
- Since:
- 0.8
- Author:
- Karl Gustafsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsynchronousStdoutReportFactory
public AsynchronousStdoutReportFactory()
newReport
public Report newReport(String identifier)
- Description copied from interface:
ReportFactory
- Create a new
Report
instance.
- Specified by:
newReport
in interface ReportFactory
- Parameters:
identifier
- A unique identifier for the instance (for identifying
messages logged from different execution threads), or null
for no
identifier.
- Returns:
- A new
Report
instance.
setReportLineFormatter
public void setReportLineFormatter(ReportLineFormatter llf)
- Description copied from interface:
ReportFactory
- Set the
ReportLineFormatter
to use for Report
objects
created from this factory. This must be set before any Report
:s
are created.
All ReportFactory
implementations are required to use a default
ReportLineFormatter
(probably the
SimpleReportLineFormatter
) if no other formatter is set.
- Specified by:
setReportLineFormatter
in interface ReportFactory
- Parameters:
llf
- The new log line formatter.