QQ : Is luup.log an alternative to Print ?

Hi

I’m looking at ways to better troubleshoot the luup/lua code I’m learning to write, and within many threads on this forum I can see ‘print’ is being used to check, however i do not seem to be able to use that when using the lua uPNP log file to check for errors - Print commands do not seem to show up …

So with that in mind, can you simply replace Print command with luup.log for everything ? Are there things it can’t do that luup.log can’t do ?

Hi Parker,

Correct print does not do anything in plugins or scene code. You have to write to the log file.

You can use print in LUATest or in ALTUI LUA test windows. I use that sometimes before moving code to a scene or plugin.

Cheers Rene.

Look up “kwiklog” in the Conditional Scenes thread:

http://forum.micasaverde.com/index.php/topic,18679.60.html

Very easy way to create logs.