I am running an SshServer as an SFTP Server and usiong Log4J.  I would like to 
see log and console messages of all user interactions with the SFTP server 
(E.g. when a users initiates an SFTP session, mkdir, put, etc).

I have googled and read Chapter 14 - Logging on the Apache MINA website.  I see 
that the IoAcceptor has a method, getFilterChain() where a logging filter can 
be added.  My problem is this.  I have an instance of SshServer (from 
SshServer.seupDefaultServer()).  The Javadoc shows me that it has an member of 
type IOAcceptor, but there is no accessor so that I can get the FilterChain and 
add my logging filter.

I can see that I need to create a LoggingFilter and call 
setLogLevel(IoEventType, LogLevel), but I can't determine how to configure my 
SshServer with that LoggingFilter.

Thanks in advance,
Joe  



Reply via email to