I’m trying to reduce the writes to the log files, partly because it makes them unreadable, and partly because it will burn out the microSD my odroid is running on. I certainly don’t need every GET to the server logged; only errors and important messages.
Is there an easy way to do this? I’m way too inexperienced with Linux to understand the logback.xml configuration file
Logging can be reduced by editing the logback.xml file (in the configuration folder). This file allows you to tune the logging by classes, so you can reduce it (or increase it) for different classes/bindings independently.
may I ask you how to do this for a specific binding? E.g., I use the Lacross binding for my waether sensors, but they send data around every 4 seconds - so it just spams the event-logfile. What I now did was the following in logback.xml:
But this just stops (of course) the logging completely for all events. So, how can I reduce (or stop) the logging for a specific binding and/or for a specific group of items (if this is even possible!?)?
For the LaCrosse Binding, this would hence be <logger name="org.openhab.binding.lacrosse.connector.LaCrosseConnector" level="ERROR" /> <logger name="org.openhab.binding.lacrosse.connector.LaCrosseConnector2" level="ERROR" />