You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Gary Gregory <ga...@gmail.com> on 2015/10/24 03:57:06 UTC
sys prop in file names?
Well, crud, this does not seem to work:
<RollingRandomAccessFile name="RollingFile" append="false"
fileName="/test/dv/logs/${sys:org.apache.logging.log4j.junit.LoggerContextRule#ClassName}-raf.log"
...
Am I missing, I get an empty file called "${sys"
Gary
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: sys prop in file names?
Posted by Ralph Goers <ra...@dslextreme.com>.
Does that system property exist? If not then you will get the same string. Windows is probably thinking the file name stops at the colon?
Ralph
> On Oct 23, 2015, at 6:57 PM, Gary Gregory <ga...@gmail.com> wrote:
>
> Well, crud, this does not seem to work:
>
> <RollingRandomAccessFile name="RollingFile" append="false" fileName="/test/dv/logs/${sys:org.apache.logging.log4j.junit.LoggerContextRule#ClassName}-raf.log" ...
>
> Am I missing, I get an empty file called "${sys"
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>