|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.report.AbstractReport
org.schmant.report.AsynchronousReport
public final class AsynchronousReport
Constructor Summary | |
---|---|
AsynchronousReport(Report wrapped,
String identifier)
|
Method Summary | |
---|---|
void |
close()
Close the current report. |
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 |
setLevel(Level l)
Set the log 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 |
---|
getLevel, isDebugReported, isErrorReported, isInfoReported, isLevelReported, isOpen, isTraceReported, isWarnReported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsynchronousReport(Report wrapped, String identifier)
Method Detail |
---|
public String getIdentifier()
Report
null
.
null
.public void setLevel(Level l)
Report
setLevel
in interface Report
setLevel
in class AbstractReport
l
- The log level.public PrintWriter getStackTraceWriter(Level l)
Report
PrintWriter
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.
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 void trace(Object o)
Report
Level.FINER
).
o
- The message to log.public void debug(Object o)
Report
Level.FINE
).
o
- The message to log.public void info(Object o)
Report
Level.INFO
).
o
- The message to log.public void warn(Object o)
Report
Level.WARNING
).
o
- The message to log.public void warn(Object o, Throwable t)
Report
Level.WARNING
).
o
- The message to log.t
- The exception to log.public void error(Object o)
Report
Level.SEVERE
).
o
- The message to log.public void error(Object o, Throwable t)
Report
Level.SEVERE
).
o
- The message to log.t
- The exception to log.public void close()
Report
close
in interface Report
close
in class AbstractReport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |