Page 1 of 1
Logging
Posted: Sunday 30 July 2017 4:32
by jkimmel
Despite LOGGING = true there is no logging found. Where to set log level?
Re: Logging
Posted: Sunday 30 July 2017 8:46
by Doler
In Settings - Other:

- Capture.JPG (27.25 KiB) Viewed 3151 times
Re: Logging
Posted: Sunday 30 July 2017 9:49
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
Re: Logging
Posted: Sunday 30 July 2017 11:31
by Doler
Log level must be set to ' Errors + minimal execution info + general info' in order to see the log messages.
Re: Logging
Posted: Monday 31 July 2017 19:34
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!
Re: Logging
Posted: Wednesday 02 August 2017 10:14
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.