Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "event" data operations like tailing files, subscribe ioBroker Log messages or States?! #9

Open
Apollon77 opened this issue Apr 6, 2018 · 1 comment

Comments

@Apollon77
Copy link
Collaborator

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

@Apollon77
Copy link
Collaborator Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants