RE: Config Files

2003-12-10 Thread Avitzur Alon
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

Re: Config Files

2003-12-10 Thread Tbee
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 suggestion

Re: Config Files

2003-12-10 Thread Praveen Alavilli
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

Re: Config Files

2003-12-10 Thread Alison Ortega
I do this: appender name=prfLogFile class=org.apache.log4j.DailyRollingFileAppender param name=File value=${acsauth.loghome}${file.separator}prf${file.separator}prf.log/ ... and set the java properties - this config is portable btw windows and solaris. Is this what you meant? Alison

Re: Config Files

2003-12-10 Thread Duncan Smith
Yeah. Thats the type of thing I meant. Thanks, Ill give it a go - Duncan Alison Ortega wrote: I do this: appender name=prfLogFile class=org.apache.log4j.DailyRollingFileAppender param name=File value=${acsauth.loghome}${file.separator}prf${file.separator}prf.log/ ... and set

Re: Config Files

2003-12-10 Thread Ceki Gülcü
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: appender name=prfLogFile class=org.apache.log4j.DailyRollingFileAppender

Re: Config Files

2003-12-10 Thread Tbee
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 the