Both @waltervl and @gizmocuz thank for your support and all attempts to help people.
gizmocuz wrote: ↑Monday 08 July 2024 8:11
I guess your previous Domoticz update was ~6 months ago?
I went to 2024.4 very soon after it was available.
So, the idea rose to have a global way of turning this off. Hence the new Log Levels in the application settings. The default level (when you install Domoticz new) is still Info+Status+Error+Exec_Info. It is possible some users did change this level previously and they experience a different log level.
But still, if you set this to Status+Error, you can override this in your script
This is also explained in the dzVents manual that can be found on our WIKI (logging = { … } (optional))
And this is also why a new example template is available called 'Logging' that you can use as tutorial.
The idea is to remove/mark all "logging = { … } (optional)" in your scripts when the script is finished so the application default level will apply.
When you need extensive script logging you can use LOG_DEBUG there
Indeed, I want that extensive logging, but only for the script I am working on. Like Kedi, until now I set it to INFO or DEBUG in the script itself.
You gave an explanation on what changed in the new version and of how it should work, But it doesn't seem like a response to my findings.
Meanwhile update 2024.6 installed, did all the cache clean-up and tried again. Still this is very confusing for me and I do not consider myself the most stupid in this area.
Earlier I already had understood, that when notyhing is specified, the general setting is used and that a specification in the script will override that. In the quote above you confirm this. My point however was clear! When I test this, that does not seem to be the case.
1. I have set the general Settings --> Other now to: 'Info, Status, Erros, Execution Info'.
2. In the template, I set the level =
domoticz.LOG_DEBUG
3. Then I run the template.
4. I expect to see now all four template lines (INFO, STATUS, ERROR, DEBUG.) in URL/#/Log.
But the result is still:
Code: Select all
2024-07-08 22:22:43.523 Status: dzVents: logtest: STATUS log line!
2024-07-08 22:22:43.523 Error: dzVents: logtest: ERROR log line!
I hope I am missing something stupid here, but I'm going around in circles now.
Domoticz in Ubuntu virtual machine on Synology DS718+ behind FRITZ!Box.
Using: EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.