|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.schmant.report.AbstractReport
org.schmant.report.MultiplexingReport
public class MultiplexingReport
This is a Report that writes its output to one or more other Report:s.
This Report has its own reporting level, so it may block logging
requests that otherwise would have been logged by the Report:s it
logs to.
| Constructor Summary | |
|---|---|
MultiplexingReport(Level l,
Report... reports)
|
|
MultiplexingReport(Report... reports)
Create a new multiplexing report that will log its output to the supplied Report objects. |
|
| Method Summary | |
|---|---|
void |
debug(Object o)
Log a message to debug level ( Level.FINE). |
void |
error(Object o)
Log a message to error level ( Level.SEVERE). |
void |
error(Object o,
Throwable t)
Log a message and an exception to error level ( Level.SEVERE). |
String |
getIdentifier()
Get the identifier for this report. |
PrintWriter |
getStackTraceWriter(Level l)
Get a PrintWriter to write a stack trace to if the stack trace
for some reason cannot be logged through any of the ordinary logger
methods. |
void |
info(Object o)
Log a message to info level ( Level.INFO). |
void |
log(Object o,
Level l)
Log a message to the supplied level. |
void |
log(Object o,
Throwable t,
Level l)
Log a message and an exception to the supplied level. |
void |
trace(Object o)
Log a message to trace level ( Level.FINER). |
void |
warn(Object o)
Log a message to warn level ( Level.WARNING). |
void |
warn(Object o,
Throwable t)
Log a message and an exception to warn level ( Level.WARNING). |
| 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 |
|---|
public MultiplexingReport(Report... reports)
Report objects. The initial log level is Level.INFO.
reports - The reports to log to.
public MultiplexingReport(Level l,
Report... reports)
| Method Detail |
|---|
public String getIdentifier()
Reportnull.
null, always.public void trace(Object o)
ReportLevel.FINER).
o - The message to log.public void debug(Object o)
ReportLevel.FINE).
o - The message to log.public void info(Object o)
ReportLevel.INFO).
o - The message to log.public void warn(Object o)
ReportLevel.WARNING).
o - The message to log.
public void warn(Object o,
Throwable t)
ReportLevel.WARNING).
o - The message to log.t - The exception to log.public void error(Object o)
ReportLevel.SEVERE).
o - The message to log.
public void error(Object o,
Throwable t)
ReportLevel.SEVERE).
o - The message to log.t - The exception to log.
public void log(Object o,
Level l)
Report
o - The message to log.l - The level to log to.
public void log(Object o,
Throwable t,
Level l)
Report
o - The message to log. This may be null.t - The exception to log. This may be null.l - The level to log to.public PrintWriter getStackTraceWriter(Level l)
ReportPrintWriter to write a stack trace to if the stack trace
for some reason cannot be logged through any of the ordinary logger
methods.
The caller is responsible for closing the writer.
l - The level to write the stack trace to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||