Is there an option to output openLuup log in color using the same log levels as the Vera? It comes in handy when troubleshooting.
openLuup already does this for device variables and scenes, putting those log entries into the log file in /var/cmh/LuaUPnP.log. The OS command that comes as standard in AltUI tails this log.
You were wanting something more?
Frankly, I find that the escape sequences which give colour get in the way when trying to examine logs in an editor. openLuup doesn’t, internally, use the same log level numbering system as Vera. I was just trying to keep things simple.
It depends what you’re trying to troubleshoot, but if it’s a single plugin, then I always recommend that you do it in a system which only has that plugin. That way, almost all of the log entries are relevant. Of course, if it’s complex multi-device logic, then you can’t do that.
So I guess the short answer is “no”!
[quote=“akbooer, post:2, topic:191633”]openLuup already does this for device variables and scenes, putting those log entries into the log file in /var/cmh/LuaUPnP.log. The OS command that comes as standard in AltUI tails this log.
You were wanting something more?[/quote]
I think what you have done is enough just checking that I hadn’t missed something obvious when logging, which I had. In my defense I haven’t really used AltUI before.
Both the ELK Alarm Panel which uses luup.io.open and the Daikin Skyfi which uses the Lua socket library directly worked like a charm when connected via network.
I read the logs on Notepad++ ;D (I use openLuup on windows) and use a user defined langage to color them :
No, my fault, I’m sure. I don’t think it’s documented in the User Guide - I’ll add it.
Both the ELK Alarm Panel which uses luup.io.open and the Daikin Skyfi which uses the Lua socket library directly worked like a charm when connected via network.
Really good to know!
[quote=“vosmont, post:4, topic:191633”]I read the logs on Notepad++ ;D (I use openLuup on windows) and use a user defined langage to color them :
https://gist.github.com/mmdemirbas/3713724[/quote]
Well, there you go. That’s what nice about a BB… you’re always learning something new!