Skip to content

Example for coloring lines in custom format #1110

Answered by tstack
WolleKette asked this question in Q&A
Discussion options

You must be logged in to vote

The coloring for the log levels is normally controlled by the theme definition. Here's how the colors are in configured the monocai theme:

"log-level-styles": {
"warning": {
"color": "$yellow"
},
"error": {
"color": "$red"
},
"critical": {
"color": "$red"
},
"fatal": {
"color": "$red"
}
}

You can override the theme's colors in your user configuration with the :config command. The path to pass to the config command will depend on the theme and log level you're modifying. For example, to change the "error" level in the "monocai" theme to a dark red, you…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WolleKette
Comment options

Answer selected by WolleKette
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants