Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

[Request] Colors for different console messages #6

Open
ErikSteiner opened this issue Jul 8, 2017 · 5 comments
Open

[Request] Colors for different console messages #6

ErikSteiner opened this issue Jul 8, 2017 · 5 comments

Comments

@ErikSteiner
Copy link

Hi there, I really would like to switch from bukkitgui to this Dashboard, but one really needed feature is missing if you are using mods and want to try things out: Different colors for console messages, that are just info messages, or warning messages, etc. This would be very helpful in order to find errors at startup or to find the reason for a recent server crash. A separate tap for the latest warning message would be also very helpful.
colors

@navhaxs
Copy link
Owner

navhaxs commented Jul 8, 2017

Hi @ErikSteiner, that is a good suggestion. I will add it to my list.

Unfortunately I won't have much time to work on this, at least until much later this year.

@ErikSteiner
Copy link
Author

Sounds good. I am looking forward to the development.

@ClockLoop
Copy link

ClockLoop commented Jun 7, 2018

I am working on this. I have some progress, almost done. Just need to make it highlight the entire line, and remove the second textbox, once i convert the code to use the richtextbox. Also this program uses the textbox as its log dump and that is an issue when the log grows in size, so I also plan to limit the log to a specific number of entries to prevent the program degridation I have noticed due to the textbox log.

The textbox wasn't made to hold thousands of log entries it lags. Also the textbox is set to smooth scrolling and fancy fonts which slow it down alot, so those will be turned off to make this program a bit more smooth. The code fix will be on my github page if its not pulled in here.

I can also set the color displayed to a wide range of colors based on plugin name, or message.
Popups will most likely be wanted for ERROR messages, so that is easy to do also.

Dumping error and warning messages to a new window or log should also be done.

Having the user specify what keywords trigger a popup, with a message that contains the entire log line (if terminated by a lfcr) would be possible also.

console

@navhaxs
Copy link
Owner

navhaxs commented Jun 7, 2018

@ClockLoop that's awesome!

Agree with the points you raised on performance - things like the smooth scrolling library aren't necessary to keep.

@ClockLoop
Copy link

ClockLoop commented Jun 8, 2018

I found simply clearing when the character count goes above 20,000 characters makes this program work properly, no more huge system and program lag due to plugins throwing repeated messages that overload the consolestream feed to the textbox.
The textbox ui cannot refresh that fast, that much data.

If ConsoleTextBlock.Text.Length > 30000 Then MyServer.ConsoleStream = "" End If

One can do better if instead of clearing it all, one were to clear just the oldest lines, like beyond 30000 characters.

If people want the log before that they need to open the one in their folder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants