org.jcoderz.commons.logging
Class BasicPrinter
java.lang.Object
org.jcoderz.commons.logging.LogPrinter
org.jcoderz.commons.logging.BasicPrinter
public class BasicPrinter
- extends LogPrinter
This printer prints the log information as lines of text and uses the display
options for selecting the fields to display.
The format is similar to the log file format.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicPrinter
public BasicPrinter()
setDisplayOptions
public void setDisplayOptions(DisplayOptions options)
- Sets the options to use for formatting.
- Overrides:
setDisplayOptions in class LogPrinter
- Parameters:
options - The display options to set.- See Also:
DisplayOptions
print
public void print(PrintWriter printer,
LogItem entry)
- Formats the log data and prints the formatted data using the supplied
print writer. A line feed is printed after the log data has been printed.
- Specified by:
print in class LogPrinter
- Parameters:
printer - The PrintWriter to use for printing the data.entry - The log data to format and print using printer.
Copyright 2007 The jCoderZ Project.