org.jcoderz.commons.logging
Class BasicPrinter

java.lang.Object
  extended by org.jcoderz.commons.logging.LogPrinter
      extended by 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.


Constructor Summary
BasicPrinter()
           
 
Method Summary
 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 org.jcoderz.commons.logging.LogPrinter
displayStackTrace, getDisplayOptions, getEntryForMoreStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPrinter

public BasicPrinter()
Method Detail

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.