openhab / openhab-vscode

VS Code extension for openHAB configuration files
https://marketplace.visualstudio.com/items?itemName=openhab.openhab
Eclipse Public License 2.0
159 stars 47 forks source link

Log presentation #9

Closed ThomDietrich closed 3 years ago

ThomDietrich commented 7 years ago

Present logging data inside the IDE.

ThomDietrich commented 7 years ago

@kaikreuzer following along the idea in #7 to exploit the REST api, do you see any possibility to use it for log retrieveal? An important feature in relation to the above. It would be desirable to get the log in a notated format - which is currently not available to the public.

MHerbst commented 7 years ago

Having access to the logs via REST would also allow remote access to the log information via myopenhab.

kaikreuzer commented 7 years ago

To me this sounds not like a desirable feature for the VS Code extension. VS Code should imho be used as an editor, not as a remote management console... And logs are not edited, so they don't really fit into the main use case here. Wouldn't a webconsole be a much much better alternative? Or am I missing something?

ThomDietrich commented 7 years ago

I should explain in more detail. Of course I'm not talking about editing the logs. This ticket is aimed at showing the log in a view e.g. next to the output/debug pane. I believe seeing the output of the execution of rules and incoming events on the event bus is needed during set up and rule development.

As a comparison: Currently a user might use an editor for rule building, the Basic UI for testing and an SSH windows for log view. My understanding of "desirable" is that all of these parts would combined in one UI.

Now of course it would be desirable to only see output related to the currently edited rule for example. That's why I've emphasized "notated format" above :smiley:

Wdyt?

kubawolanin commented 7 years ago

@ThomDietrich we may as well display openHAB Log Viewer / frontail, but it's too tightly coupled with openHABian at the moment.

The side view is basically a browser embedded inside IDE. We can display whatever we want here :) Although I'd first think of a webconsole @kaikreuzer mentioned, e.g. a separate openHAB UI aggregating logs. Maybe a fork of frontail bundled as a openHAB UI add-on? Just suggesting the ideas... 😃

ThomDietrich commented 7 years ago

The "openHAB Log Viewer"/frontail is not meant to be a real solution, it's just a tail on a webpage =)

I followed the discussion around the web console here and do agree that such a UI would be interesting in some cases. To store, filter and query logs I've got a prototype solution based on logstash+elasticsearch+kibana working.

Maybe I should clarify for everyone still confused that when talking about the "log" I'm talking about the integration of information generated by rules and logged due to event bus changes in meaningful ways. At first that could happen as a simple "Log View" but in the long run I'd strive for a more specialized integration.

Let me define a few user stories to make the idea clearer:

Confectrician commented 3 years ago

There are different tutorials available for taking a look at the logs. I am not considering this currently. If someone wants to take over, i will reopen this issue.