Using a single $ works as that is resolved during configuration. As I recall, ‘$${nnn:…}’ does not work. I specify ${sys:catalina.home} in the filename for all of my web apps.
Ralph > On Nov 27, 2016, at 11:10 PM, Remko Popma <remko.po...@gmail.com> wrote: > > Does the FileAppender support lookups in the configured file name? > > Something like > <File name="F" fileName="${sys:procName:unknown}"> > ... > > Does a JIRA ticket already exist for this? (Couldn't find it...) > > I have a number of processes that are configured almost identically; with the > log4j2.xml inside one of the jars. Trying to let the different processes log > to separate files. Not as easy as I thought it would be. :-) > > Remko > > Sent from my iPhone > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org