org.drools.agent.impl
Class LoggingAgentEventListener

java.lang.Object
  extended by org.drools.agent.impl.LoggingAgentEventListener
All Implemented Interfaces:
AgentEventListener, org.drools.SystemEventListener

public class LoggingAgentEventListener
extends Object
implements AgentEventListener


Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
LoggingAgentEventListener()
           
 
Method Summary
 void debug(String message)
           
 void debug(String message, Object object)
           
 void exception(String message, Throwable e)
           
 void exception(Throwable e)
           
 void info(String message)
           
 void info(String message, Object object)
           
 void setAgentName(String name)
          This sets the name for logging.
 String time()
           
 void warning(String message)
           
 void warning(String message, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient org.slf4j.Logger logger
Constructor Detail

LoggingAgentEventListener

public LoggingAgentEventListener()
Method Detail

time

public String time()

exception

public void exception(String message,
                      Throwable e)
Specified by:
exception in interface org.drools.SystemEventListener

exception

public void exception(Throwable e)
Specified by:
exception in interface org.drools.SystemEventListener

info

public void info(String message)
Specified by:
info in interface org.drools.SystemEventListener

warning

public void warning(String message)
Specified by:
warning in interface org.drools.SystemEventListener

debug

public void debug(String message)
Specified by:
debug in interface org.drools.SystemEventListener

setAgentName

public void setAgentName(String name)
Description copied from interface: AgentEventListener
This sets the name for logging.

Specified by:
setAgentName in interface AgentEventListener

debug

public void debug(String message,
                  Object object)
Specified by:
debug in interface org.drools.SystemEventListener

info

public void info(String message,
                 Object object)
Specified by:
info in interface org.drools.SystemEventListener

warning

public void warning(String message,
                    Object object)
Specified by:
warning in interface org.drools.SystemEventListener


Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.