On 10/6/08, Phlogiston Eight <[EMAIL PROTECTED]> wrote:
>
> I have log4j.properties in the /classes subdir as usual, but for some reason, 
> the webapp does not seem to be finding it.  Logging is not working yet, no 
> log files being written when the app is run. The FTPServer, itself is running 
> and working fine. But it is not logging.
>
>
> We are running FTPServer embedded in our webapp.  It is writing to 
> System.out. that "No appenders are set-up" (Log4j). However, an appender IS 
> defined properly in the log4j.properties file--which is inside 
> WEB-INF/classes.  I have used log4j on its own, for years, in web 
> applications. For web applications, WEB-INF/classes is where you are supposed 
> to put log4j.properties, to define the appenders.
>
> Where do I have to put log4j.properties within my project for FTPServer to 
> successfullly find it?  I'm looking for a specific direectory or URI. Thanks.

There are nothing special to do with regards to FtpServer and log4j.
In fact, FtpServer Core doesn't even depend on log4j, it uses SLF4J.
So, as long as you got the required SLF4J and log4j jars, and you
log4j config everything should work as usual. In you case, are you
able to log from any other part of your application, like a servlet?

/niklas

Reply via email to