Just making sure: note that these are system properties, not environment
variables. You need to use "-D" when starting java to transport individual
environment variables to the system properties.
Quoting Ceki Gülcü <[EMAIL PROTECTED]>:
> As Alison Ortega mentioned, log4j configurators support
As Alison Ortega mentioned, log4j configurators support the substitution of
system properties, actually properties in general. Quite a handy feature...
At 09:48 AM 12/10/2003 -0500, Alison Ortega wrote:
I do this:
...
and set the java properties - this config is portable btw windows an
Yeah. Thats the type of thing I meant.
Thanks, Ill give it a go
- Duncan
Alison Ortega wrote:
> I do this:
>
> class="org.apache.log4j.DailyRollingFileAppender">
> value="${acsauth.loghome}${file.separator}prf${file.separator}prf.log"/>
> ...
>
> and set the java properties - this conf
I do this:
...
and set the java properties - this config is portable btw windows and
solaris. Is this what you meant?
Alison Ortega
North Carolina State University
ACS
Systems Programmer II
919-513-1417
>>> [EMAIL PROTECTED] 12/10/03 09:16AM >>>
Is it possible to put envirinment var
I asked the same type of question some time back and here is the
solution that I got
http://www.mail-archive.com/[EMAIL PROTECTED]/msg10021.html
I didn't try it because the new classes are not yet in the final release
of log4J - they are only on sandbox.
- Praveen
Duncan Smith wrote on 12/10/
> Is it possible to put envirinment variables into the configuration file?
Not as far as I know.
> The reason I ask is that I develop on a windows machine, and deploy onto
> a linux, so the paths where I want to store the logs are differant.
>
> If it is not possible, does anyone have a suggesti
I don't know if log4j can do it automatically, but what we did was to extend
the RollingFileAppender, override the public void setFile (String file)
method and parse the string.
If you find a way to do it automatically please share.
Alon,
-Original Message-
From: Duncan Smith [mailto:[EMA