${catalina.home}/logs/mylog.logIf you want it to be dynamic per webapp, then you can set the system property in a servlet context listener and then perform the manual configuration of Log4j.
And if you are configuring manually via a startup servlet, why put log4j.properties in the classpath? It would get picked up there automatically anyway (at least under a server using child-first classloading behavior recommended by the servlet spec) assuming log4j.jar is also in WEB-INF/lib.
Jake
At 05:02 PM 11/11/2004 -0800, you wrote:
>I want to use log4j to configure my webapp to write log files underneath
>it's WEB-INF directory.
>
>Today, I drop a log4j.properties file in WEB-INF/classes and I
>use code in the initialization of a servlet to programmatically fill in
>the .File property for a FileAppender (or a subclass of FileAppender)
>
>It would be nice if there was a way to specify the dir that the
>pathnames parsed in log4j.properties were relative to or some other
>technique for having the logfiles be relative to the webapp w/out
>writing code.
>
>Any advice?
>
>Thanks,
>-Eric
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
