Well, I’m back after a while to this project.
Now I’m in trouble with a specific and a bit more general question which are connected somehow.
First, I’m trying to use some ESP2866 DIY device with OH and its embedded MQTT. The problem here is that my ESPs randomly gets disconnected from the MQTT server. This can be in 10 minutes or 30 or whatever. The result code on my client’s side is -2 which according to some internet research is probably a not unique client ID. I have currently two test clients and I can confirm their IDs are different. So I would liket to see the OH’s MQTT logs to see if the connection is arrived there at all or where is the problem.
For this I would like to see its logs but I cannot see any - probably debug - log regarding client connection.
I’ve tried karaf console but here comes the general question too.
If I enter log:get
I can see the current logging settings. There are a lot of loggers which an amatour like me cannot understand at all. How do I know if I need someting to increase its loglevel what is its name? Where can I find information what are the possible loggers I can add/set here?
And back to my original question:
I found this thread. However it is for the old MQTT if I am right. Anyway I tried it but I still cannot see any MQTT connection related log.
Please direct me to the right way in this topic.
Thanks in advance!
Bonus question: when I have finished debugging is there an easy way to simply reset the logging levels to their factory value? Or if according to the above link I enter log:set DEBUG org.eclipse.paho.client.mqttv3 then a new entry will appear which was not there before. How do I know what was its default value?