Package com.sshtools.synergy.ssh
Class ConnectionLoggingContext
java.lang.Object
com.sshtools.synergy.ssh.ConnectionLoggingContext
- All Implemented Interfaces:
EventListener,com.sshtools.common.logger.LoggerContext
public class ConnectionLoggingContext
extends Object
implements com.sshtools.common.logger.LoggerContext, EventListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(Connection<?> con) booleanisLogging(com.sshtools.common.logger.Log.Level level) voidvoidnewline()voidopen(Connection<?> con) voidprocessEvent(Event evt) voidvoidvoidstartLogging(SshConnection con, com.sshtools.common.logger.Log.Level level)
-
Method Details
-
isLogging
public boolean isLogging(com.sshtools.common.logger.Log.Level level) - Specified by:
isLoggingin interfacecom.sshtools.common.logger.LoggerContext
-
log
public void log(com.sshtools.common.logger.Log.Level level, String msg, Throwable e, Object... args) - Specified by:
login interfacecom.sshtools.common.logger.LoggerContext
-
open
- Throws:
IOException
-
startLogging
- Throws:
IOException
-
startLogging
public void startLogging(SshConnection con, com.sshtools.common.logger.Log.Level level) throws IOException - Throws:
IOException
-
close
-
raw
- Specified by:
rawin interfacecom.sshtools.common.logger.LoggerContext
-
close
public void close()- Specified by:
closein interfacecom.sshtools.common.logger.LoggerContext
-
newline
public void newline()- Specified by:
newlinein interfacecom.sshtools.common.logger.LoggerContext
-
processEvent
- Specified by:
processEventin interfaceEventListener
-