Logging

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
jkimmel
Posts: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

Logging

Post by jkimmel »

Despite LOGGING = true there is no logging found. Where to set log level?
Rfxcom
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

Post by Doler »

In Settings - Other:
Capture.JPG
Capture.JPG (27.25 KiB) Viewed 3154 times
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

Post by jkimmel »

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) end
Rfxcom
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

Post by Doler »

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

Post by jkimmel »

Doler wrote:Log level must be set to ' Errors + minimal execution info + general info' in order to see the log messages.
Thank you!
Rfxcom
Raspi 4
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Logging

Post by dannybloe »

It is best to explicitly pass a log-level to the log method in your code:

Code: Select all

domoticz.log('Some message', domoticz.LOG_INFO) -- or LOG_ERROR or LOG_DEBUG
That way you have full control of when you want to see which kind of log messages using the settings.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest