Error Logging Levels from Automation Modules

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
enco.josh
Posts: 35
Joined: 10 Mar 2014 22:10

Error Logging Levels from Automation Modules

Post by enco.josh »

How can I log varying levels of messages from within an automation module? I have done some digging around and understand that the http-log-level can be set from 0 to 4. What do these levels represent?

The console object has 4 properties (log, warn, error, debug). All four properties reference the same debugPrint function effectively meaning that there is no difference between them. Is this a feature to be added or is there another function to use? I would like to vary my logs based on the http-log-level in the config.xml file.

For example, if http-log-level = 0 then all console.xxx commands would go to the log file, but if http-log-level = 3 then only console.error commands would go to the log file.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Error Logging Levels from Automation Modules

Post by PoltoS »

in current implementation debugPring is a debug tool only and goes to debug (0) log level only.
Post Reply