Python DomoticzEx Logging

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
fleinze
Posts: 9
Joined: Wednesday 19 April 2017 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python DomoticzEx Logging

Post by fleinze »

Version: 2025.1 build 16627
Platform: official Docker image
Plugin/Hardware: Raspberry, Python-Framework
Description:

In the wiki page "Developing a Python plugin" it says, that the Update method (for the extended framework) has a parameter called "Log" with the description "During the update a row will be written to the log table."

The expected behaviour is that every time Devices[id].Units[unit].Update(Log=True) is called, a line in the log should be created.

The actual behaviour is that there is no log line.

When I look into PythonObjectEx.cpp it looks like the "Log" variable is read into bWriteLog, but bWriteLog is not used anywhere else in the whole file.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest