Inherits java::io::PrintWriter.
Public Member Functions | |
Logger (OutputStream output) | |
Logger (Writer writer) | |
Logger | setPrefix (String prefix) |
Logger | setLogTime (boolean logTime) |
void | println () |
void | println (boolean value) |
void | print (boolean value) |
void | println (char value) |
void | print (char value) |
void | println (int value) |
void | print (int value) |
void | println (long value) |
void | print (long value) |
void | println (float value) |
void | print (float value) |
void | println (double value) |
void | print (double value) |
void | println (char[] value) |
void | print (char[] value) |
void | println (String value) |
void | print (String value) |
void | println (Object value) |
void | print (Object value) |
Static Public Member Functions | |
static PrintWriter | getSystemLogger () |
static void | setSystemLogger (PrintWriter system) |
Protected Member Functions | |
final void | prefixLine () |
Simple logging facility. This logger extends PrintWriter
which is used to trace SQL statements, Castor operations and mapping resolutions.
This logger augments PrintWriter
by adding a prefix to each printed line and optionally a time stamp, enabling easy post-mortem analysis.
org.exolab.castor.util.Logger.Logger | ( | OutputStream | output | ) |
Constructs a new logger to use the specified output stream.
org.exolab.castor.util.Logger.Logger | ( | Writer | writer | ) |
Constructs a new logger to use the specified writer.
static PrintWriter org.exolab.castor.util.Logger.getSystemLogger | ( | ) | [static] |
Returns the default logger. This logger is used to produce system messages.
final void org.exolab.castor.util.Logger.prefixLine | ( | ) | [protected] |
Called before printing from all of the print methods. If at the beginning of a new line, the data/time and prefix will be printed.
Referenced by org.exolab.castor.util.Logger.print(), and org.exolab.castor.util.Logger.println().
void org.exolab.castor.util.Logger.print | ( | char | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.print | ( | double | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.print | ( | char[] | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.print | ( | int | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.print | ( | String | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.print | ( | Object | value | ) |
void org.exolab.castor.util.Logger.print | ( | boolean | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
Referenced by org.exolab.castor.util.Logger.println().
void org.exolab.castor.util.Logger.print | ( | long | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.print | ( | float | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.println | ( | char[] | value | ) |
References org.exolab.castor.util.Logger.print().
void org.exolab.castor.util.Logger.println | ( | long | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.println | ( | Object | value | ) |
References org.exolab.castor.util.Logger.println().
void org.exolab.castor.util.Logger.println | ( | ) |
Referenced by org.exolab.castor.util.Logger.print(), and org.exolab.castor.util.Logger.println().
void org.exolab.castor.util.Logger.println | ( | String | value | ) |
References org.exolab.castor.util.Logger.print().
void org.exolab.castor.util.Logger.println | ( | int | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.println | ( | char | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.println | ( | float | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.println | ( | double | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
void org.exolab.castor.util.Logger.println | ( | boolean | value | ) |
References org.exolab.castor.util.Logger.prefixLine().
Logger org.exolab.castor.util.Logger.setLogTime | ( | boolean | logTime | ) |
Determines whether to print the time at the beggining of each log line.
logTime | True if time should appear at the beggining of each log line |
Logger org.exolab.castor.util.Logger.setPrefix | ( | String | prefix | ) |
Sets the prefix, a short name to print at the beginning of each log line. If a null is passed, no prefix precedes logged lines.
prefix | The prefix to use for each line |
static void org.exolab.castor.util.Logger.setSystemLogger | ( | PrintWriter | system | ) | [static] |
Sets the default logger. This logger is used to produce system messages.