Do we still have te reboot to apply the changes in the XML file? It’s very unconvenient for me, because in OH3 that breaks the LogTail and the GoogleTTS voice, so with every change I have to reinstall (unable to do that for GoogleTTS) them…
Awesome. I think this would be worthwhile to submit for inclusion in the core, but maybe backing off the interval a little bit. Seems to me that one minute or even five minutes would be sufficient for seeing your changes relatively quickly.
For slow copy-paste people like me , here is a working example for z-wave.
I also found out the hard way that it is important to add each section at the end (Appenders and Loggers).
/var/lib/openhab/etc/log4j2.xml (Debian systems)
Appender part
Hi All,
First of all i want to say thanks to all for the input and @rockit4 for the “Copy/paste” Template and (for me) the most important hint to add the lines at the and of each section. I first added the lines in my well structed way (not at the end of each section) and it didn’t work. I tried many combinations, openhab.service restarts and even reboots of the whole environment. Nothing worked. So i read the last post carefully and there it was.
I also found out the hard way that it is important to add each section at the end (Appenders and Loggers).
Glad i could be of help
Personally I love when someone has taken the time to write an example ready to go.
Copy/paste and you are up and running without the need to read the book how to do it.
You could argue that being lazy is the driving force of home automation
I think it needs one reboot after adding that in the file. I added it but it doesn’t filter any of my events. Is there a possibility to restart the logging service (apache i think?).
Sorry to revive an old post. I tried to adapt @rockit4 ZWAVE code for RFXCOM binding, I’m no longer able to find its logs since update to OH3 (very useful to identify protocols). This is what I added in Appenders section :