CobaltFusion / DebugViewPP

DebugView++, collects, views, filters your application logs, and highlights information that is important to you!
Boost Software License 1.0
1.02k stars 150 forks source link

Add custom styling support #208

Open Drugoy opened 9 years ago

Drugoy commented 9 years ago

Would be nice if messages could be styled based on something like BBCodes. For example coloring messages based on some syntax, like

This entire message should be red {!#FF0000!}
This entire message should be green {!#00ff00!}

Or maybe even something more enhanced like

This message contains 2 words colored differently: {!#f00}red{!/} and {!#0f0}green{!/}.

And bold/italic/underline text styling support using the same or similar kind of syntax would be extra nice. The tags' text, of course should NOT be shown to user, instead they should just get interpreted and visually hidden.

This would let user generate smart debugging messages so that the user knows where to look at in the whole ton of debugging log.

janwilmans commented 9 years ago

I like it! It might be possible to implement this once we have added #191 and we add working on that now :) I will definitely look into this. Currently coloring is of course already possible using filters, but after the log is saved the colors are gone :)

Drugoy commented 9 years ago

I like that you like it! :) But I don't get the relation of this feature to #191: what I suggested would be useful not only for looking at previously saved logs, but actually everywhere else: sometimes my code generates lots of debugging messages and since they are plain text and can't be properly structured - it's sometimes quite hard to visually find the needed part from the whole long message, and do it for a bunch of lines at once. With that feature I could just highlight the needed values using different colors and... BAM! I won't need to search for them in the long massive of similar lines that may get shifted to left/right because for some cases the previous value was absent or whatever.

janwilmans commented 9 years ago

"what I suggested would be useful not only for looking at previously saved logs, but actually everywhere else", which was the point I was trying to make, but apparently I'm not doing a very good job :)

I understand the benefits of your request, we want to implement it, its only a matter of time :)

janwilmans commented 8 years ago

Drugoy: notice that in the meanwhile, as long as we have not implemented this, you can use a 'poor mans solution' and add '{!#FF0000!}' as highlight filter, and it will color the line red, add {!#00ff00!} and a second highlight filter, and it will color the whole line green... it will not give you the full freedom of 16 million colors, but it might be workable...