-
Platform information:
- Hardware: NUC Intel I3 / 12 Gb
- OS: Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-56-generic x86_64)
- Java Runtime Environment (in docker): openjdk version “11.0.15” 2022-04-19
- openHAB version: 3.2.0 (docker-image: openhab/openhab:3.3.0)
-
Issue of the topic: Just a question
YOU MAY SKIP THE PART:
In the past I successful reduced logging for openhabian on a RPi4. it still works but I cannot find how I did this, meaning:
- The majority of the Logging topics are from the OH2 era and for example I know the file “org.ops4j.pax.logging.cfg” is in OH3 just the expected oneliner and moved to “log4j2.xml”.
- However I cannot find any real explanation in the RPi4 file “log4j2.xml” for this reduced logging (both files are on my RPI4 in " /var/lib/openhab/etc/"
- I my notes I saved an instruction to do a “log:set” in the console but if I go now on my RPi4 into the console with “ssh -p 8101 openhab@localhost” the next the command “log:list” and others commands give the error “Error executing command: Unrecognized configuration”. So this environment looks a bit shaky now, despite it seems to work, but no problem I already migrated to my NUC.
AND CONTINUE FROM HERE:
In my new situation I can find the file in “log4j2.xml” in “/opt/openhab/userdata/etc/”
My question is: Am I allowed to add directly in the appropiate section of this file the following lines?:
<Logger level="ERROR" name="openhab.event.ItemStateChangedEvent"/>
<Logger level="ERROR" name="openhab.event.ItemCommandEvent"/>
<Logger level="ERROR" name="openhab.event.ItemStatePredictedEvent"/>
Or should this been done differently?
It seems to give the desired result (active after a stop/start of the docker openhab)
Side question: Which version do I have?
- When I do “docker exec -it openhab /openhab/runtime/bin/client” I see “3.3.0 - Release Build” (BTW when i do next log:list (a valid command in the TAB overview) the result is “Command not found: log:get”
- but in “http://NUC-ip/about/” I see “openHAB 3.2.0”.