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

com.bitfactoryinc.logging
Class SerialLogger

java.lang.Object
  |
  +--com.bitfactoryinc.logging.Logger
        |
        +--com.bitfactoryinc.logging.SerialLogger
Direct Known Subclasses:
SerialSocketLogger

public class SerialLogger
extends Logger

Instances of this class write out serialized LogEntries to it's OutputStream


Field Summary
private  java.io.ObjectOutputStream out
           
 
Fields inherited from class com.bitfactoryinc.logging.Logger
application, defaultFilterClass, defaultFormatterClass, enabled, filter, formatter
 
Constructor Summary
SerialLogger()
           
SerialLogger(java.io.OutputStream anOutputStream)
           
 
Method Summary
protected  boolean doLog(LogEntry aLogEntry)
          We're past filtering at this point.
protected  void finalize()
           
 java.io.ObjectOutputStream getOut()
           
protected  boolean handleLogFailure(LogEntry aLogEntry, java.lang.Exception ex)
           
 void setOut(java.io.ObjectOutputStream newOut)
           
 void setOut(java.io.OutputStream anOutputStream)
           
protected  void tryToLog(LogEntry aLogEntry)
           
 
Methods inherited from class com.bitfactoryinc.logging.Logger
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, writeToLog
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

out

private java.io.ObjectOutputStream out
Constructor Detail

SerialLogger

public SerialLogger()

SerialLogger

public SerialLogger(java.io.OutputStream anOutputStream)
Method Detail

doLog

protected boolean doLog(LogEntry aLogEntry)
Description copied from class: Logger
We're past filtering at this point. Now it's time to really log aLogEntry. Subclasses might want to do something more interesting and override this method.
Overrides:
doLog in class Logger

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object

getOut

public java.io.ObjectOutputStream getOut()

handleLogFailure

protected boolean handleLogFailure(LogEntry aLogEntry,
                                   java.lang.Exception ex)

setOut

public void setOut(java.io.ObjectOutputStream newOut)

setOut

public void setOut(java.io.OutputStream anOutputStream)

tryToLog

protected void tryToLog(LogEntry aLogEntry)
                 throws java.lang.Exception

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