Page 1 of 1

Status: EventSystem: Script event triggered:

Posted: Wednesday 10 June 2020 14:13
by plugge
The Domoticz log has numerous uninformative Status entries like these:
2020-06-10 14:00:20.421 Status: EventSystem: Script event triggered: D:\Program Files (x86)\Domoticz\dzVents\runtime\dzVents.lua
2020-06-10 14:00:30.544 Status: EventSystem: Script event triggered: D:\Program Files (x86)\Domoticz\dzVents\runtime\dzVents.lua
2020-06-10 14:00:40.645 Status: EventSystem: Script event triggered: D:\Program Files (x86)\Domoticz\dzVents\runtime\dzVents.lua

I know that I can set the dzVents log to be more informative (with a lot more lines in the log).
Why doesn't the status tell us which dzVents lua script is executed?
The name of the script is present when I save a script, f.e.:
2020-06-10 14:10:13.548 Status: dzVents: Write file: D:\Program Files (x86)\Domoticz\scripts\dzVents\generated_scripts\BackGroundPowerUse.lua
2020-06-10 14:10:13.548 Status: dzVents: Write file: D:\Program Files (x86)\Domoticz\scripts\dzVents\generated_scripts\IFTTTtest.lua

Why not something like:
2020-06-10 14:00:20.421 Status: EventSystem: Script event triggered: D:\Program Files (x86)\Domoticz\dzVents\runtime\dzVents.lua\IFTTTtest.lua

Is there an option to have the script name in de log (without increasing the number of Status lines)?

Re: Status: EventSystem: Script event triggered:

Posted: Wednesday 10 June 2020 18:03
by waaren
plugge wrote: Wednesday 10 June 2020 14:13 Why doesn't the status tell us which dzVents lua script is executed?
[setup][settings][other]

These status line are from the event system and can be controlled in the red block

The script lines are from dzVents and can be controlled with the green block when you add below lines in the script

Code: Select all

    logging =
    {
        level = domoticz.LOG_INFO,
        marker = 'my log marker',
    },


settings.png
settings.png (32.57 KiB) Viewed 545 times

Re: Status: EventSystem: Script event triggered:

Posted: Wednesday 10 June 2020 22:46
by plugge
waaren wrote: Wednesday 10 June 2020 18:03
plugge wrote: Wednesday 10 June 2020 14:13 Why doesn't the status tell us which dzVents lua script is executed?
These status line are from the event system and can be controlled in the red block

The script lines are from dzVents and can be controlled with the green block when you add below lines in the script
Thanks waaren, I am aware of these settings, but expected that setting "Log 'event script triggers'" would show not just that a lua script was triggered, or a blockly, but the name of the script - or the marker - on the same entry in the log.
Anyway, it's not that important. I'm stil impressed with what Domoticz can do and how it does it. And, coming from Lisp (a looong time ago), I really enjoy lua.