Great, is this documented in 1.2.9 or 1.3.alpha6? Thanks, Gary
-----Original Message----- From: Ceki G�lc� [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 10:24 AM To: Log4J Developers List; Log4J Developers List Subject: Re: Parameterized directory FileAppender At 07:03 PM 3/24/2005, Gary Gregory wrote: >Hello: > >Let me prefix this note by saying that I am willing to do provide code >and test patches for such a feature. I want to ask if this is too >off-beat to consider for log4j or if should hack something up on the >side. > >We have fat server and test environment where settings like the ones >below causes a log file to be created, as expected, based on the current >VM directory. > >log4j.appender.TextFile=org.apache.log4j.FileAppender >log4j.appender.TextFile.File=logs/log4j.log > >Due to the complexity of our runtime and testing environments, what I >really need to be able to say is: create the file *over there* based on >a System property. For example, the following would be backwards >compatible: > >log4j.appender.TextFile=org.apache.log4j.FileAppender >log4j.appender.TextFile.DirectoryProperty=a.system.property >log4j.appender.TextFile.File=logs/log4j.log > >This would allow us to store log4j property files in CVS and have >various local machines set up any which way. > >I am *not* suggesting the following for fear of backwards breakage: > >log4j.appender.TextFile.File=${a.system.property}/logs/log4j.log > >Crazy? No, especially since this feature is already supported. >Thanks, >Gary -- Ceki G�lc� The complete log4j manual: http://www.qos.ch/log4j/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
