|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.schmant.report.SimpleReportLineFormatter
public class SimpleReportLineFormatter
This is the default LogLineFormatter.
If the schmant.SimpleReportLineFormatter.logTimestamp system property
is set to true, a timestamp will be logged at each row.
| Constructor Summary | |
|---|---|
SimpleReportLineFormatter()
|
|
| Method Summary | |
|---|---|
String |
formatLine(String reportIdentifier,
String severity,
String msg)
Format one log line. |
String |
formatStackTrace(String reportIdentifier,
String severity,
Throwable t)
Format a log message containing a stack trace. |
boolean |
isLogTimestamp()
Is a timestamp logged with each log message? |
void |
setLogTimestamp(boolean b)
Should a timestamp be logged with each log message? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleReportLineFormatter()
| Method Detail |
|---|
public void setLogTimestamp(boolean b)
b - true if a timestamp should be logged with each message.public boolean isLogTimestamp()
true if a timestamp is logged with each message.
public String formatLine(String reportIdentifier,
String severity,
String msg)
ReportLineFormatter
formatLine in interface ReportLineFormatterreportIdentifier - The identifier for the Report instance
that wants the log line formatted. This may be null if the
Report does not have an identifier set.severity - A text representing the log message's severity, e.g.
"INFO" or "TRACE".msg - The log message.
public String formatStackTrace(String reportIdentifier,
String severity,
Throwable t)
ReportLineFormatter
formatStackTrace in interface ReportLineFormatterreportIdentifier - The identifier for the Report instance
that wants the log line formatted. This may be null if the
Report does not have an identifier set.severity - A text representing the log message's severity, e.g.
"INFO" or "TRACE".t - The Throwable containing the stack trace.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||