Re: Placeholder substitution in config xml

2016-01-04 Thread Veit Guna
t;> >> >> >> Gesendet: Montag, 04. Januar 2016 um 14:45 Uhr >> Von: "Veit Guna" >> An: log4j-user@logging.apache.org >> Betreff: Placeholder substitution in config xml >> Hi. >> >> I'm using log4j 2.5 in a REST service. &

Re: Aw: Placeholder substitution in config xml

2016-01-04 Thread Remko Popma
t;-Dmyapp.logs=foobar", of > course. > Just a typo during posting... > > > > > Gesendet: Montag, 04. Januar 2016 um 14:45 Uhr > Von: "Veit Guna" > An: log4j-user@logging.apache.org > Betreff: Placeholder substitution in config xml > Hi. > > I&

Aw: Placeholder substitution in config xml

2016-01-04 Thread Veit Guna
Small correction: the system property is set via "-Dmyapp.logs=foobar", of course. Just a typo during posting...   Gesendet: Montag, 04. Januar 2016 um 14:45 Uhr Von: "Veit Guna" An: log4j-user@logging.apache.org Betreff: Placeholder substitution in config xml Hi. I&#x

Placeholder substitution in config xml

2016-01-04 Thread Veit Guna
Hi. I'm using log4j 2.5 in a REST service. There I would like to use the placeholder substitution to allow configuration of the log location. I tried this: ${sys:mypapp.logs:-${env:MYAPP_LOGS:-logs}} This seems to work quite well with the exception, if myapp.logs is set, the path en