-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Ability to colorize logs for well known frameworks/tools using Layouts #145
Comments
Thank for idea! Providing UI for editing such color "layout" seems to be complicated, but we can start by loading some text file crafted by hand. |
@federico-piazza creating separate highlighter groups (#190) with highlighters that apply colors only to matched part of the string (#189) should come close to this feature. And we can create some combinations and add them to klogg repository as importing highlighters from files is also supported (#173). |
@variar awesome, you da man! Is this already available for download? |
@federico-piazza it should work in 20.9.0.664. Today I've found a bug with lines that has tab characters in them. Klogg expands tabs for display but not for pattern matching, so coloring is off by some columns. Might be not that easy to fix. |
In Vim syntax rules, there is a |
It would be great to have the ability colorize one line using different patterns.
For instance, spring boot has its own colorful template:
https://i.stack.imgur.com/S06Fz.png
It can be achieve using this template:
So, in addition to highlighters, it would be nice to add a log "layout". We could use multiple regex to have multiple colors inside the same line.
For example, these regex would apply for each line:
The text was updated successfully, but these errors were encountered: