com.go.trove.log
Class LogSerializer

java.lang.Object
  |
  +--com.go.trove.log.LogSerializer
All Implemented Interfaces:
java.util.EventListener, LogListener

public class LogSerializer
extends java.lang.Object
implements LogListener

LogListener serializes LogEvents to an ObjectOutputStream. LogSerializer does not distinguish between logged messages and logged exceptions. They are both treated as messages.

Version:
12 , 9/07/00
Author:
Brian S O'Neill

Constructor Summary
LogSerializer(java.io.ObjectOutput out)
           
 
Method Summary
 void logException(LogEvent event)
          Called for LogEvents that should be logged as an exception.
 void logMessage(LogEvent event)
          Called for LogEvents that should be logged like an ordinary message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSerializer

public LogSerializer(java.io.ObjectOutput out)
Method Detail

logMessage

public void logMessage(LogEvent event)
Description copied from interface: LogListener
Called for LogEvents that should be logged like an ordinary message.
Specified by:
logMessage in interface LogListener

logException

public void logException(LogEvent event)
Description copied from interface: LogListener
Called for LogEvents that should be logged as an exception. The LogEvent object will likely have an Exception object in it.
Specified by:
logException in interface LogListener