|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.mibble.SimpleLogPrinter
A simple log printer. This class formats and prints log entries to an output stream. The formatting includes linebreaking the string so that a specified print margin is not passed unless necessary.
Constructor Summary | |
SimpleLogPrinter(java.io.PrintStream output,
int margin)
Creates a new simple log printer. |
|
SimpleLogPrinter(java.io.PrintWriter output,
int margin)
Creates a new simple log printer. |
Method Summary | |
void |
print(LogEntry entry)
Prints a log entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleLogPrinter(java.io.PrintStream output, int margin)
output
- the output streammargin
- the print marginpublic SimpleLogPrinter(java.io.PrintWriter output, int margin)
output
- the output streammargin
- the print marginMethod Detail |
public void print(LogEntry entry)
print
in interface LogPrinter
entry
- the log entry to print
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |