OlofBlomqvist / odd-box

dead simple reverse proxy and webserver
https://odd-box.cruma.io/
MIT License
9 stars 1 forks source link

Improve live_logs websocket endpoint #7

Closed OlofBlomqvist closed 3 months ago

OlofBlomqvist commented 3 months ago

The current websocket endpoint for log messages are basic strings with no structure. A more structured format would be easier to work with; I would expect it to look something like this:

{
  "message": "...",
  "hostname": "some.domain",
  "level": "info"
}

It may also be useful to have the possibility of toggling loglevel or hostname filters on this endpoint

OlofBlomqvist commented 3 months ago

... turns out this is already the case! This PR also solves all known issues with this endpoint so closing this issue