com.maverick.sshd.events
Class SSHDLoggingListener
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSHDLoggingListener
public SSHDLoggingListener()
SSHDLoggingListener
public SSHDLoggingListener(boolean ignoreLogEvents)
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.