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
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
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
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
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]
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.
>
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
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
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
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
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
11 matches
Mail list logo