Example for coloring lines in custom format #1110
-
Currently, I’m writing a config for a custom log format. I’ld like to coloring some lines depending on their loglevel. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The coloring for the log levels is normally controlled by the theme definition. Here's how the colors are in configured the monocai theme: Lines 255 to 268 in 8d17561 You can override the theme's colors in your user configuration with the
|
Beta Was this translation helpful? Give feedback.
The coloring for the log levels is normally controlled by the theme definition. Here's how the colors are in configured the monocai theme:
lnav/src/themes/monocai.json
Lines 255 to 268 in 8d17561
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…