© 2002 - Lorne Brinkman
www.TheObjectGuy.com
Lorne@TheObjectGuy.com

com.bitfactoryinc.logging
Class PrintStreamLogger

java.lang.Object
  |
  +--com.bitfactoryinc.logging.Logger
        |
        +--com.bitfactoryinc.logging.PrintStreamLogger

public class PrintStreamLogger
extends Logger

Instances of this class write LogEntry information to a PrintStream. It's most likely use will be as a System console logger--instances of which can be created by using the static method newConsoleLogger().


Field Summary
private  java.io.PrintStream printStream
           
 
Fields inherited from class com.bitfactoryinc.logging.Logger
application, defaultFilterClass, defaultFormatterClass, enabled, filter, formatter
 
Constructor Summary
private PrintStreamLogger()
           
  PrintStreamLogger(java.io.PrintStream aPrintStream)
           
 
Method Summary
protected  java.io.PrintStream getPrintStream()
           
static PrintStreamLogger newConsoleLogger()
           
protected  void setPrintStream(java.io.PrintStream newPrintStream)
           
protected  boolean writeToLog(java.lang.String s)
          Subclasse can override this method if they want to simply write a String to their log.
 
Methods inherited from class com.bitfactoryinc.logging.Logger
doLog, getApplication, getDefaultFilterClass, getDefaultFormatterClass, getFilter, getFormatter, getSeverityThreshold, isEnabled, log, log, log, logCritical, logCritical, logDebug, logDebug, logError, logError, logFatal, logFatal, logInfo, logInfo, logStatus, logStatus, logWarning, logWarning, setApplication, setDefaultFilter, setDefaultFilterClass, setDefaultFormatter, setDefaultFormatterClass, setEnabled, setFilter, setFormatter, setSeverityThreshold, shouldLog
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

printStream

private java.io.PrintStream printStream
Constructor Detail

PrintStreamLogger

private PrintStreamLogger()

PrintStreamLogger

public PrintStreamLogger(java.io.PrintStream aPrintStream)
Method Detail

getPrintStream

protected java.io.PrintStream getPrintStream()

newConsoleLogger

public static PrintStreamLogger newConsoleLogger()

setPrintStream

protected void setPrintStream(java.io.PrintStream newPrintStream)

writeToLog

protected boolean writeToLog(java.lang.String s)
Description copied from class: Logger
Subclasse can override this method if they want to simply write a String to their log. Return true for successful processing of the log, false otherwise.
Overrides:
writeToLog in class Logger

© 2002 - Lorne Brinkman
www.TheObjectGuy.com
Lorne@TheObjectGuy.com