Closed florian-h05 closed 1 year ago
The reason is linked in that PR, see https://github.com/openhab/openhab-distro/issues/1362 , I would need to re-read that conversation as well to remember as it was almost a year ago.
Thx for the link.
After reading the conversation, I got the point of the decision.
So, as we keeporg.openhab.automation.script
on INFO, I’ll add a note about enabling console.debug
and console.trace
to the README.
Anyway, IMO we should change the logger prefix for openhab-js to something that makes clear that the message comes from openhab-js.
I will change the library’s logger prefix to org.openhab.automation.openhab-js
.
@digitaldan Are you fine with those two changes?
yeah, i'm good with those!
As reported in the community (https://community.openhab.org/t/openhab-3-4-milestone-discussion/138093/113), openhab-js debug logging can confuse users:
The problem we have, is that openhab-js is logging to the same logger prefix as user scripts, so we cannot reduce logging from debug to info, because we then would „break“
console.debug
for the user scripts.I propose to change the logger prefix for our library and the log4j2 configuration:
org.openhab.automation.script
on TRACE for user scripts (to allow debug & trace logging fromconsole
) (add this to log4j2.xml; was already added)org.openhab.automation.openhab-js
on INFO for our library@digitaldan Why did you revert your addition of such a logger prefix in https://github.com/openhab/openhab-distro/pull/1364?