rlkoshak
(Rich Koshak)
January 25, 2021, 7:26pm
2
I’ve been seeing a lot of posts lately about people wanting to eliminate certain events from their events.log. This posting is to show that doing so is not only a bad idea but unnecessary.
First, I’ll apologize to the Windows users out there. I don’t know the right commands to do this on Windows without installing MinGW, Cygwin, or Linux Subsystem for Windows. Below I include both Posix (will work for Linux, iOS, BSD, and those addons to Windows listed to the left) and the Windows Powershell eq…
Simple string filtering on the event log. Useful for filtering out high change items that don’t need constant log visibility.
Re-posting this as it’s own thread on the recommendation of other members. I also recommend reading Taming openHAB 2 Logging and Log4j2 Sample Config which this was based on.
Log configuration data using openhabian-pi is stored in the following file. Location may vary under other installation methods.
/srv/openhab2-userdata/etc/org.ops4j.pax.logging.cfg
openHAB using …
However, this last tutorial is for OH 2. The log4j config was moved to the log4j.xml file and is now in XML format. See Logging | openHAB for some more info on that and Log4j – Log4j Filters should give you the information necessary to translate that tutorial to the new format.