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)?
Status: EventSystem: Script event triggered: Topic is solved
Moderators: leecollings, remb0
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Status: EventSystem: Script event triggered:
[setup][settings][other]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
Code: Select all
logging =
{
level = domoticz.LOG_INFO,
marker = 'my log marker',
},
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
plugge
Re: Status: EventSystem: Script event triggered:
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.waaren wrote: Wednesday 10 June 2020 18:03These status line are from the event system and can be controlled in the red blockplugge wrote: Wednesday 10 June 2020 14:13 Why doesn't the status tell us which dzVents lua script is executed?
The script lines are from dzVents and can be controlled with the green block when you add below lines in the script
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.
Who is online
Users browsing this forum: No registered users and 1 guest