|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReportLineFormatter
This interface defines a class that formats Report messages.
Implementations should be thread safe since they are reused between several
Report instances.
Implementations are required to have a zero-argument constructor. If they need configuration parameters, they may use system properties.
| 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. |
| Method Detail |
|---|
String formatLine(String reportIdentifier,
String severity,
String msg)
reportIdentifier - 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.
String formatStackTrace(String reportIdentifier,
String severity,
Throwable t)
reportIdentifier - 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 | ||||||||