com.maverick.sshd.events
Class SSHDLoggingListener

java.lang.Object
  extended by com.maverick.sshd.events.SSHDLoggingListener
All Implemented Interfaces:
com.maverick.events.EventListener

public class SSHDLoggingListener
extends Object
implements com.maverick.events.EventListener

Example SSHD Listener Implementation that sends event messages and attributes to log4j.


Constructor Summary
SSHDLoggingListener()
           
SSHDLoggingListener(boolean ignoreLogEvents)
           
 
Method Summary
 String getProduct()
           
 void processEvent(com.maverick.events.Event evt)
          Invoked when an event occurs.
 void setIgnoreLogEvents(boolean ignore)
          sets a boolean allowing EVENT_LOG,EVENT_DEBUG_LOG, and EVENT_EXCEPTION_LOG events to be ignored
 void setProduct(String product)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSHDLoggingListener

public SSHDLoggingListener()

SSHDLoggingListener

public SSHDLoggingListener(boolean ignoreLogEvents)
Method Detail

setProduct

public void setProduct(String product)

getProduct

public String getProduct()

setIgnoreLogEvents

public void setIgnoreLogEvents(boolean ignore)
sets a boolean allowing EVENT_LOG,EVENT_DEBUG_LOG, and EVENT_EXCEPTION_LOG events to be ignored


processEvent

public void processEvent(com.maverick.events.Event evt)
Invoked when an event occurs. Sends event message and all its attributes to log4j.

Specified by:
processEvent in interface com.maverick.events.EventListener
Parameters:
evt - event


Copyright © 2012. All Rights Reserved.