openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Add logs to rest api

Open BasvanH opened this issue 2 years ago • 6 comments

If we added the logs to Rest API we can integrate them on various places like custom widgets and Habpanel without having to build bash/PHP scripts.

We could add /logs Request a certain logger or all Optional time range Optional row range or last X records Optional pagination

We do you think of this idea?

BasvanH avatar Nov 04 '23 08:11 BasvanH

There is #3345 and #3859 which seem to address this issue, is that correct?

J-N-K avatar Nov 04 '23 10:11 J-N-K

Yes it does, great! Are there any filter options available to avoid pulling to much data?

Is this already available in any snapshot?

BasvanH avatar Nov 04 '23 15:11 BasvanH

No, both not available. Yes, both allow filtering by the logger name with a regular expression.

J-N-K avatar Nov 04 '23 18:11 J-N-K

No, both not available.

Do you know when it will be?

BasvanH avatar Nov 05 '23 10:11 BasvanH

@J-N-K do you have an estimated date?

BasvanH avatar Nov 08 '23 07:11 BasvanH

@J-N-K has no insight into how long it will take. Once the PRs are completed and reviewed they will be merged and available in the next snapshot build of OH 4.1 (or 4.2 if it doesn't get done before the end of the year.

It's a group effort involving volunteers. There really is no such things as a deadline for anything.

rkoshak avatar Nov 08 '23 15:11 rkoshak