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()}
The text was updated successfully, but these errors were encountered:
Hi Ingo! Sorry for late answer, was on Easter vacation :)
The idea is good, will try to read about log subscription and how it could then be integrated in the next days after I catch up with actual work.
Hi,
This would be indeed a great feature! I have scripted a code to retrieve the log data and write it into states regularly and to generate JSON for visualization. However, would also prefer to have it within this adapter. Link to the script FYI.
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()}
The text was updated successfully, but these errors were encountered: