|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.logging.LogPrinter
public abstract class LogPrinter
An instance of this formats and prints the output of the log viewer. Implementations of this differ in the format they use for printing the data.
| Constructor Summary | |
|---|---|
LogPrinter()
|
|
| Method Summary | |
|---|---|
protected boolean |
displayStackTrace(LogItem entry)
Gets information whether the stack trace of the supplied log file entry should be displayed. |
DisplayOptions |
getDisplayOptions()
Gets the display options. |
protected LogItem |
getEntryForMoreStackTrace(LogItem entry,
StackTraceInfo info)
Get the LogItem needed to complete the stack trace when a '...nnn more' line has been encountered. |
abstract void |
print(PrintWriter printer,
LogItem entry)
Formats the log data and prints the formatted data using the supplied print writer. |
void |
setDisplayOptions(DisplayOptions options)
Sets the options to use for formatting. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogPrinter()
| Method Detail |
|---|
public void setDisplayOptions(DisplayOptions options)
options - The display options to set.DisplayOptionspublic final DisplayOptions getDisplayOptions()
public abstract void print(PrintWriter printer,
LogItem entry)
printer - The PrintWriter to use for printing the data.entry - The log data to format and print using printer.protected boolean displayStackTrace(LogItem entry)
entry - The entry to check.
entry should be displayed;
false, else.
protected LogItem getEntryForMoreStackTrace(LogItem entry,
StackTraceInfo info)
entry - The entry with the '...nnn more' stack trace line.info - The '...nnn more' stack trace line.
entry if the complete stack trace has already been
displayed; the entry with the complete stacktrace, else.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||