openhab / openhab-core

Core framework of openHAB
https://www.openhab.org/
Eclipse Public License 2.0
897 stars 415 forks source link

Add logs to rest api #3861

Open BasvanH opened 8 months ago

BasvanH commented 8 months ago

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?

J-N-K commented 8 months ago

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

BasvanH commented 8 months ago

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

Is this already available in any snapshot?

J-N-K commented 8 months ago

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

BasvanH commented 8 months ago

No, both not available.

Do you know when it will be?

BasvanH commented 8 months ago

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

rkoshak commented 8 months ago

@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.