-
-
Notifications
You must be signed in to change notification settings - Fork 456
Add log web socket #3859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add log web socket #3859
Conversation
This adds a websocket connection for receiving logs. Signed-off-by: Jan N. Klug <github@klug.nrw>
|
Would it be also possible to add a short example to the docs how to use this? |
|
Sure. Short description: open a web socket connection to |
|
Perfect. The regex matches the whole line? So that's what I would want to use to filter e.g. for the levels INFO, WARNING and ERROR. Or is there an option to set the log level? |
|
Just to clarify - I am looking for a way to subscribe to all messages of level INFO and above (e.g. WARNING, ERROR, CRITICAL and whatever other levels there may be). |
kaikreuzer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
What if I want to filter by log level and not by regex. |
|
@J-N-K : |
|
No, this passes on what goes to the logger. I also think it would be confusing, because if you add |
You misunderstand. If I configure Or do you have another idea how I can get all |
This adds a web socket connection for receiving logs. Similar to #3345 but for web sockets instead of SSE.
@ghys FYI. It works fine with the
LogReaderServiceand theLogListener.