You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because of https://forum.iobroker.net/viewtopic.php?f=21&t=13165 I was (again) thinking about writing an "log-parser" adapter that subscribes to the ioBroker Logs (adapter can do that) and allow regex-or-whatever-partsing.
Then I tought that it would be great enhancements for parser or systeminfo adapter.
What do you think?
And while thinking about it I came up also with the idea to be able to monitor logfiles on disk and "tail" them or also subscribe to states in ioBroker and be able to parse values.
When I understand the code correctly the object delivered "on('log')" should look like:
{message: msg, severity: level, from: that.namespace, ts: (new Date()).getTime()}
If integrated here the question is how to distinguish between file/url and log. one idea would be some kind of "fake" URl like log://severity,adaptername.instance or only severity,adaptername.instance (then everything with / on start is a file, all with http(s):// an URL and without both a log) ... Opinions?
Hey,
because of https://forum.iobroker.net/viewtopic.php?f=21&t=13165 I was (again) thinking about writing an "log-parser" adapter that subscribes to the ioBroker Logs (adapter can do that) and allow regex-or-whatever-partsing.
Then I tought that it would be great enhancements for parser or systeminfo adapter.
What do you think?
And while thinking about it I came up also with the idea to be able to monitor logfiles on disk and "tail" them or also subscribe to states in ioBroker and be able to parse values.
Log subscription in ioBroker:
see https://github.com/ioBroker/ioBroker.js-controller/blob/master/doc/LOGGING.md
When I understand the code correctly the object delivered "on('log')" should look like:
{message: msg, severity: level, from: that.namespace, ts: (new Date()).getTime()}
Do here and/or iobroker-community-adapters/ioBroker.systeminfo#5
The text was updated successfully, but these errors were encountered: