org.qedeq.kernel.bo.log
Class ModuleLogListenerImpl

java.lang.Object
  extended by org.qedeq.kernel.bo.log.ModuleLogListenerImpl
All Implemented Interfaces:
ModuleLogListener

public final class ModuleLogListenerImpl
extends java.lang.Object
implements ModuleLogListener

Listener that writes events to a stream.

Author:
Michael Meyling

Constructor Summary
ModuleLogListenerImpl(java.lang.String moduleUrl)
          Constructor.
ModuleLogListenerImpl(java.lang.String moduleUrl, java.io.PrintStream stream)
          Constructor.
 
Method Summary
 void logMessageState(java.lang.String text)
          Log message state for a single QEDEQ module.
 void setPrintStream(java.io.PrintStream stream)
          Set output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleLogListenerImpl

public ModuleLogListenerImpl(java.lang.String moduleUrl)
Constructor.

Parameters:
moduleUrl - We log for this module.

ModuleLogListenerImpl

public ModuleLogListenerImpl(java.lang.String moduleUrl,
                             java.io.PrintStream stream)
Constructor.

Parameters:
moduleUrl - We log for this module.
stream - Print to this stream.
Method Detail

setPrintStream

public final void setPrintStream(java.io.PrintStream stream)
Set output stream.

Parameters:
stream - Output stream.

logMessageState

public final void logMessageState(java.lang.String text)
Description copied from interface: ModuleLogListener
Log message state for a single QEDEQ module.

Specified by:
logMessageState in interface ModuleLogListener
Parameters:
text - Message state.


Copyright © 2014. All Rights Reserved.