openhab / openhab-distro

The binary distribution of openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.3k stars 391 forks source link

Placeholders in the logging.cfg are expanded on runtime startup #540

Open hakan42 opened 7 years ago

hakan42 commented 7 years ago

If I use placeholders in etc/org.ops4j.pax.logging.cfg, they are expanded into their full value. e.g. "${openhab.logdir}" becomes /var/log/whatever after starting the runtime.

Can this behaviour be disabled somehow?

wborn commented 5 years ago

Did you already find an answer to your question @hakan42? You might find more answers in the Karaf community.

hakan42 commented 5 years ago

Nope, I did not research further on this.

Rather, I am with keeping the cfg file in git and recreating the logging.cfg each and every time I start a fresh docker image. The target log directory, in turn, is mounted as a volume, so my itch is scratched.

I should so some further research on this, though, to really understand Karaf logging...