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

history: add capability to color parts of log files #97

Open
krig opened this issue Jun 2, 2015 · 1 comment
Open

history: add capability to color parts of log files #97

krig opened this issue Jun 2, 2015 · 1 comment

Comments

@krig
Copy link
Contributor

krig commented Jun 2, 2015

from https://bugzilla.suse.com/show_bug.cgi?id=930237

We could take log coloring a bit further.

The idea is to have regular expressions and color whatever matches. For instance, it would be useful to color red everything starting with "ERROR" and "CRIT" (nowadays aka "error" and "crit").

It should be configurable, i.e. let the user add regex-color mapping to a file.

It is important to reset back to the initial color at the end of the match, so we need to keep track of the current color on the line.

It'd be good to allow more than eight colors we currently have.

I think I've seen once some utility which does this for syslog based logs.

And we could also this way make RA messages stand out.

I've thought about this for the log viewer in the web interface, which currently doesn't do any kind of highlighting at all. At the very least, it should highlight which node the log comes from, but I also think highlighting error lines would be great.

@krig
Copy link
Contributor Author

krig commented Jun 2, 2015

So, my question about this is mainly figuring out how it would work. I feel like it'd be easy to add a lot of complexity and I'm not clear on how it should work... How does this fit with the current highlighting based on node?

I definitely think it'd be great to highlight words like ERROR etc. I'm just not sure what the best way to do it is :)

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

No branches or pull requests

1 participant