Fwd: DailyRollingFileAppender configuration

2006-07-24 Thread James Stauffer
Good piece of information (and thanks for the correction): -- Forwarded message -- From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Jul 23, 2006 6:40 AM Subject: Re: DailyRollingFileAppender configuration To: [EMAIL PROTECTED] Hi James This mail is with reference to your repl

Re: Set a SystemProperty to specify an absolute path for a FileAppender

2006-07-24 Thread [EMAIL PROTECTED]
I've already tried the ServletContextListener solution but it doesnt work as I could imagine since the logger already read the props file. > The only solution that comes to my mind if you want to set the property even > before log4j is started is to set it through the java command as i mentioned

Re: Set a SystemProperty to specify an absolute path for a FileAppender

2006-07-24 Thread jaikiran pai
The only solution that comes to my mind if you want to set the property even before log4j is started is to set it through the java command as i mentioned in my earlier mail. However, if you want to set the property when your application is *getting deployed*, then there appears to be another way

RE: Programmatically change properties of an appender

2006-07-24 Thread Levy, Jeremy
What I have done for the moment is set the values I want to replace as ${xxx.xxx} in my layout and change the corresponding System Property. However I would think there is a cleaner way to do this.. j -Original Message- From: James Stauffer [mailto:[EMAIL PROTECTED] Sent: Friday, July 21

Sandro Ruch/namics/com is out of the office.

2006-07-24 Thread Sandro Ruch
I will be out of the office starting 24.07.2006 and will not return until 02.08.2006. I will respond to your message when I return. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Set a SystemProperty to specify an absolute path for a FileAppender

2006-07-24 Thread [EMAIL PROTECTED]
Yes, this could be a solution I've already tried it, but I wonder whether is possible to set a SystemProperty before log4j is even loaded so that FileAppender.file=${myWebAppVariable}\${logfileName} does make sense. I'm just imagine a ClassLoader workaround but I can't see anything concrete. >

Re: Set a SystemProperty to specify an absolute path for a FileAppender

2006-07-24 Thread James Stauffer
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 w

Re: Set a SystemProperty to specify an absolute path for a FileAppender

2006-07-24 Thread [EMAIL PROTECTED]
Unfortunately I dont have the control over the container life cycle I can barely deploy the "war" file. > How do you start your web/app server. Usually, its through a bat file which > contains the java command. If that's the case, then you can pass your system > properties as part of java comman

Re: Set a SystemProperty to specify an absolute path for a FileAppender

2006-07-24 Thread jaikiran pai
How do you start your web/app server. Usually, its through a bat file which contains the java command. If that's the case, then you can pass your system properties as part of java command. Something like: java -D"myWebApp=c:/somepath" . You will have to check the bat file whic

Set a SystemProperty to specify an absolute path for a FileAppender

2006-07-24 Thread [EMAIL PROTECTED]
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'v

Re: DailyRollingFileAppender, rolling at midnight

2006-07-24 Thread Javier Gonzalez
Johan, I couldn't find any solution that didn't imply some sort of reimplementation of the appender to do a (resource wasting) monitoring on the time and issue the internal roll command. My ugly workaround hack was simple. The conversion pattern I'm using with the layout associated to the append