If you always deploy to the same location under the app server you
could check if that is a property for the app server (i.e.
catalina.home) that you could use as your base.

On 7/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi everyone,
I'd like that classes running in a web application would log to a file whose 
path is local to the absolute path where the web app is running. This means 
that, named ${myWebApp} my web application, I'd like to define the FileAppender 
file property to
${myWebApp}'s absolute path . I've tried doing this by creating a 
ServletContextListener implementation and declaring in it a SystemProperty, but 
it doesnt work so far: i mean, it works but not the very first time that the 
web app rises, and this happens because class loader loads the log4j.jar before 
the ContextListener had called,I presume. Any hints are appreciated

Ign Rome, Italy


___________________________________________________________________
Conto Arancio al 4% fino a fine 2006 - Zero spese, soldi sempre disponibili. 
Aprilo subito
http://click.libero.it/ING



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to