Logging
Moderator: leecollings
-
Doler
- Posts: 163
- Joined: Friday 31 July 2015 21:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Sint-Oedenrode, Netherlands
- Contact:
Re: Logging
In Settings - Other:
Mark: Domoticz latest Beta on Virtual machine (Proxmox) running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (latest, docker) via python plugin - Zwave-js-ui (latest, docker) - dzVents - Nodered
-
jkimmel
- Posts: 129
- Joined: Monday 25 November 2013 17:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Mallorca
- Contact:
Re: Logging
But this enabled doesn't show anything (LOGGING = true) having this code
Code: Select all
if LOGGING then domoticz.log('Setpoint was set to ' .. device.state) endRfxcom
Raspi 4
Raspi 4
-
Doler
- Posts: 163
- Joined: Friday 31 July 2015 21:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Sint-Oedenrode, Netherlands
- Contact:
Re: Logging
Log level must be set to ' Errors + minimal execution info + general info' in order to see the log messages.
Mark: Domoticz latest Beta on Virtual machine (Proxmox) running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (latest, docker) via python plugin - Zwave-js-ui (latest, docker) - dzVents - Nodered
-
jkimmel
- Posts: 129
- Joined: Monday 25 November 2013 17:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Mallorca
- Contact:
Re: Logging
Thank you!Doler wrote:Log level must be set to ' Errors + minimal execution info + general info' in order to see the log messages.
Rfxcom
Raspi 4
Raspi 4
-
dannybloe
- Posts: 1355
- Joined: Friday 29 August 2014 11:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Ermelo
- Contact:
Re: Logging
It is best to explicitly pass a log-level to the log method in your code:
That way you have full control of when you want to see which kind of log messages using the settings.
Code: Select all
domoticz.log('Some message', domoticz.LOG_INFO) -- or LOG_ERROR or LOG_DEBUG
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Who is online
Users browsing this forum: No registered users and 1 guest