How to set the log level for the FtpLoggingFilter
Hi, I am wondering, how I can adjust the log levels for some message types in the FtpLoggingFilter when using the FTP Server. In particular, I would like the follow to have log level DEBUG: sessionCreatedLevel sessionOpenedLevel sessionIdleLevel sessionClosedLevel I had a look around the code, but didn't find out how I can directly access the FtpLoggingFilter instance via some of the FTP classes I am using (Listener, ListenerFactory, FtpServer, FtpServerFactory…). It seems to me that the logging config is hidden deeply inside the class structure and can't be modified. Is this assumption correct or how can I modify the log levels? Thanks a lot. Cheers, Martin
Customizing ls command
Hi, I want to use FTP Server on my proprietary data which is not a directory with files. So I want to have a handler (FTPlet?) to respond to ls, get etc. Starting with the ls command I want to return a directory listing (with filenames) that I generate from my proprietary data and use these generated filenames if the user execute a get command etc. Is that possible? Thanks, Andreas -- Andreas Mueller IIT Software GmbH, Bremen/Germany http://www.swiftmq.com IIT Software GmbH Fahrenheitstr. 13, D28359 Bremen, Germany Tel: +49 421 330 46 088, Fax: +49 421 330 46 090 Amtsgericht Bremen, HRB 18624, Geschaeftsfuehrer: Andreas Mueller Steuernummer: 460/118/06404 VAT: DE199945912
Re: Customizing ls command
You need to write your own Filesystem implementation. This has been discussed a few times in this mailing list, so take a look at the archives. On 21 January 2014 10:37, Andreas Mueller a...@iit.de wrote: Hi, I want to use FTP Server on my proprietary data which is not a directory with files. So I want to have a handler (FTPlet?) to respond to ls, get etc. Starting with the ls command I want to return a directory listing (with filenames) that I generate from my proprietary data and use these generated filenames if the user execute a get command etc. Is that possible? Thanks, Andreas -- Andreas Mueller IIT Software GmbH, Bremen/Germany http://www.swiftmq.com IIT Software GmbH Fahrenheitstr. 13, D28359 Bremen, Germany Tel: +49 421 330 46 088, Fax: +49 421 330 46 090 Amtsgericht Bremen, HRB 18624, Geschaeftsfuehrer: Andreas Mueller Steuernummer: 460/118/06404 VAT: DE199945912 -- There is no way to peace; peace is the way