grhosso
(Juan)
1
Hi there,
I have setup my sensors (in sonoff basic) Tª and Hum. to refresh every 5 minutes, and the values show up on the log events.
How I could enable/disable only this logs for temperature and sensors? Is there any way to customize the information shown in log?
Thank you.
grhosso
(Juan)
2
I need to read this
It seems that I only can filter…
grhosso
(Juan)
3
Cool got it with this code in the /srv/openhab2-userdata/etc/org.ops4j.pax.logging.cfg
’ sonoff05temp|sonoff07temp|sonoff05hum|sonoff07hum ’ these are the devices I want to filter.
# custom filter
log4j2.appender.event.filter.uselessjunk.type = RegexFilter
log4j2.appender.event.filter.uselessjunk.regex = .*(sonoff05temp|sonoff07temp|sonoff05hum|sonoff07hum).*
log4j2.appender.event.filter.uselessjunk.onMatch = DENY
log4j2.appender.event.filter.uselessjunk.onMisMatch = ACCEPT
1 Like