mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Goodacre <Ian.Gooda...@xtra.co.nz>
Subject Re: windows service ftpd.exe
Date Sat, 27 Aug 2011 01:50:11 GMT
Hi Sai,

Thank you very much for your assistance.

I finally got it working!!

What made the difference was adding a driver specification to the log4j
appender definition in log4j.properties. I now have:

log4j.appender.S.sql=INSERT INTO [dbo].[XW_FTPLOG] (LEVEL, LOG_TIME,
LOGIN, REMOTE_IP, MESSAGE) VALUES ( '%5p', '%d', '%X{userName}', '%
X{remoteIp}', '%m%n' );

Previously, the log4j.appender.S.driver line wasn't there. Why it found
the driver without it when run from the command line but didn't find it
when run as a service I have no idea. But now it is working beautifully.

Now my only problem is log messages with single quotes in them. I
understand other implementations of JDBCAppender deal with that better,
or maybe I can add a filter to log4j to escape them.

Thanks again,

View raw message