Hello everyone,
I use Openhab as a docker instance . For the visualization I use portainer.
Can someone tell me how to display the openhab log in the log console in portainer?
Hello everyone,
I use Openhab as a docker instance . For the visualization I use portainer.
Can someone tell me how to display the openhab log in the log console in portainer?
Assuming portainer just captures stdout and stderr, you need to edit userdata.etc/log4j2.xml to oupt logs to stdout/stderr instad of or in addition to writing to openha.log and events.log.
Thank you very much for the tip.
I am a beginner. Can you tell me how to do this?
I don’t know the specifics but the following with some googling should be enough to get you there. You need to create an appender that logs to stdout.
https://logging.apache.org/log4j/2.x/manual/configuration.html