openhab-distro icon indicating copy to clipboard operation
openhab-distro copied to clipboard

Placeholders in the logging.cfg are expanded on runtime startup

Open hakan42 opened this issue 7 years ago • 2 comments

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?

hakan42 avatar Sep 22 '17 13:09 hakan42

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

wborn avatar Sep 29 '19 12:09 wborn

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...

hakan42 avatar Sep 29 '19 12:09 hakan42