Exclusion of single item from logging in events.log

I filter my logs too. See this configuration:

log4j2.appender.event.filter.regex.type = RegexFilter
log4j2.appender.event.filter.regex.regex = .*(Latenz|Musik_Spotify_Fortschritt|System|nanoleaf:controller|unsend|Sequence|bridgeV6|predicted|Gruppe|activityStarted|activityStarting|Astro|RPi2Helper|buttonevent).*
log4j2.appender.event.filter.regex.onMatch = DENY
log4j2.appender.event.filter.regex.onMisMatch = ACCEPT

I added this to /srv/openhab2-userdata/etc/org.ops4j.pax.logging.cfg

Hint: for testing purposes and/or fast access to the file you can create a symlink to the file into your openhab config folder:


So you can change settings easily any time without opening an ssh session

If you want to make your log look even nicer check out this thread.

2 Likes