Skip to content
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

Show realtime debug log in WebUI #71

Closed
proddy opened this issue Jun 9, 2021 · 7 comments
Closed

Show realtime debug log in WebUI #71

proddy opened this issue Jun 9, 2021 · 7 comments
Labels
enhancement New feature or request
Milestone

Comments

@proddy
Copy link
Contributor

proddy commented Jun 9, 2021

Was wondering if it's at all useful at all to show the debug log (what is shown in the Console and SysLog) to the WebUI? It's fairly easy to implement using eventsource and consist of a new tab in the System section of the WebUI which shows the messages coming in. And the ability to change the level (off, debug, all etc).

@MichaelDvP what do you think? Waste of time or useful?

@proddy proddy added the enhancement New feature or request label Jun 9, 2021
@MichaelDvP
Copy link
Contributor

Usefull if you add a button for logging to file. When asking for a telnet log we see a lot of screenshots with only a few lines, because people don't find the log option in telnet. It can be fixed to log_all and maybe a fixed timeout of 3-5 min to close the file automatically.

@bbqkees
Copy link
Contributor

bbqkees commented Jun 10, 2021

If its not much effort it could be worthwhile to implement for those not technical enough for Syslog.

proddy added a commit that referenced this issue Jun 16, 2021
@proddy
Copy link
Contributor Author

proddy commented Jun 16, 2021

First implementation done. Need to run some stability tests and keep an eye on memory and bandwidth usage.

Screenshot 2021-06-16 145407

@proddy
Copy link
Contributor Author

proddy commented Jun 17, 2021

@MichaelDvP let me know what you think. If ok, I'll merge into dev.

I did think about a Save button (and implemented it) but cut&paste is just as easy

@MichaelDvP
Copy link
Contributor

let me know what you think. If ok, I'll merge into dev.

Works good. Only two comments:

  • the log-selector should use the same names as in settings-syslog: replace TRACE with ALL (not in console, only in selector)
  • on your big screen there is a large console area, but on a small Laptop-screen it's only 12 lines. If you move the note about buffering beside the selector there is one more line for the console.

@proddy
Copy link
Contributor Author

proddy commented Jun 18, 2021

thanks. I'll change TRACE to ALL and move the text to next to the pull-down menu.
I could also change the font-size? it's 14pt now. Making it 12pt will give a lot more records.

proddy added a commit that referenced this issue Jun 18, 2021
@proddy proddy closed this as completed Jun 18, 2021
@proddy proddy added this to the v3.2 milestone Jul 20, 2021
@proddy
Copy link
Contributor Author

proddy commented Jul 27, 2021

I made some improvements to the log. The level wasn't working great before. looks like this now:

Screenshot 2021-07-27 214446

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants