org.jactr.tools.tracer.listeners
Class LogTracer

java.lang.Object
  extended by org.jactr.tools.tracer.listeners.BaseTraceListener
      extended by org.jactr.tools.tracer.listeners.LogTracer
All Implemented Interfaces:
java.util.EventListener, org.jactr.core.logging.ILogger, ITraceListener

public class LogTracer
extends BaseTraceListener
implements org.jactr.core.logging.ILogger

intercepts LogEvents, typically via the DefaultModelLogger, transforms the event through LogEventTransformer and routes the transformed event to the specified ITraceSink

Author:
developer

Constructor Summary
LogTracer()
           
 
Method Summary
 void flush()
           
 void install(org.jactr.core.model.IModel model, java.util.concurrent.Executor executor)
           
 void log(org.jactr.core.logging.LogEvent logEvent)
           
 void uninstall(org.jactr.core.model.IModel model)
           
 
Methods inherited from class org.jactr.tools.tracer.listeners.BaseTraceListener
setTraceSink
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogTracer

public LogTracer()
Method Detail

log

public void log(org.jactr.core.logging.LogEvent logEvent)
Specified by:
log in interface org.jactr.core.logging.ILogger
See Also:
ILogger.log(org.jactr.core.logging.LogEvent)

flush

public void flush()
Specified by:
flush in interface org.jactr.core.logging.ILogger

install

public void install(org.jactr.core.model.IModel model,
                    java.util.concurrent.Executor executor)
Specified by:
install in interface ITraceListener

uninstall

public void uninstall(org.jactr.core.model.IModel model)
Specified by:
uninstall in interface ITraceListener