I now have a well running OH3 container on my Synology NAS (here’s my way). During the installation, I was a bit quick and unconcentrated in not paying attention to the port settings - in other words, my container looks like this:
So i’ve no idea where the logviewer (which i know from oh2) is … on my old raspy-oh2.5 it was found in Port 9001:
There’s no API for it, and I doubt it’s on the roadmap, but-
You might or might know it, and I don’t know if it’s safe to tell, but you can easily install the Karaf web console with:
Then if you go to http://instance:8080/system/console (the user/pwd is the same as SSH) ou have a lot of geeky management options, I wouldn’t be surprised if you found an option to change the log level there.
There’s even a terminal emulator (in the Main > Gogo menu I think) to type your commands.
Obviously it’s way less safe than SSH but if you want to take the risk…
Ah, Thanks - this helps much! I’ve found the openhab.log and events.log easily by File Station …
what confuses me are the other files in the folder … if I understand it correctly, a new log file is started when the old one exceeds .16mb. … so i could remove the .log.1 - log.7, couldn’t i?
Then something else I don’t understand: in all logs are timestamps of (my) things from the beginning of the year - but I installed Openhab for the first time on Synology via docker just last month…(?).
In OH2 frontail was offered my means of a link in the homepage, is it possibile in MainUI ? (I am talking about Openhabian setup where frontail is already there)
I also see that frontail is Node.js as MainUI, is maybe possibile to integrate the 2 ?
I would be super and help users a lot (and thus devs life) to provide feedbacks if a log is integrated in MainUI, possibly with option to set DEBUG loglevel for a specific binding
openhab-core needs to implement a REST API to expose the logs. Once that is implemented the webui’s can use that REST API to show you the logs. If you just want a link to the logs as served up by Frontail, I believe M5 has the ability to put a webview onto a Page now. You can put Frontail into a widget on a Page.
I don’t know if there is a way to add to the list of applications in the upper right hand corner menus where BasicUI and HABPanel are listed.
From there I don’t know what to say. I’m not even certain that the webview widget has been merged into the baseline yet. I remember seeing the PR scroll by my feed but that’s about it. I don’t have a need for a Webview so I didn’t look any closer.
In response to the OP, @welteki has created a docker image that even has the OpenHab theme! You can find it on Docker hub - ’ welteki/frontail-openhab’. I have created a docker-compose file, which I run from an SSH shell on my Synology NAS. You will need to change the file path to match your Synology setup. Note: Also change the file extension to ‘yml’ docker-compose.txt (265 Bytes)
@ysc openHAB is using Karaf. Karaf is using PAX-LOGGING.
It is pretty easy to add self-written log appender to PAX-LOGGING.
I have written some time already an appender that inspect the log messages and send mails if a log message contains an exception.
We could think about an appender that writes all log messages using SSE.
A SSE client could use a filter expression to get only informed about a specific log level (similar as the filters for the SSE that published the event stream).
The SSE resource itself could be “admin only” or we consider if an admin enabled the appender he knows it will be not secured.