Documentation
Logs and templates
Use plain text, JSON, or logfmt logs and reshape structured output in the TUI.
Log modes
Vectron can route process output to:
consolefilesboth
The default behavior is configured globally and can be overridden per process.
Defaults involved here:
global.log_mode: defaultconsoleprocess.log_mode: inheritsglobal.log_mode
Log formats
Supported log formats include:
textlogfmtjsonjson_pretty
Choose a structured format when you want the TUI to extract fields and render them differently from the original raw line.
Defaults involved here:
global.log_format: defaulttextprocess.log_format: inheritsglobal.log_format
Templates only affect rendered output
Log templates reshape structured lines for the console and history view. File sinks still keep the original raw process output.
This separation matters:
- rendered logs can be short and readable
- file logs remain faithful to the child process output
Presets
Define presets under [log_templates.<name>], then bind them through:
[global.log_template][process.log_template]
Use:
presetstdout_presetstderr_preset
Defaults involved here:
preset: default nonestdout_preset: default nonestderr_preset: default none- layout
separator: effective default" " - field
format: effective defaultnone - field
visible_if: effective defaultalways
Disable child ANSI colors when needed
When parsing JSON or logfmt from child processes, ANSI color sequences can be undesirable. Use:
[global]
disable_color_env = trueOverride per process if needed.
Defaults involved here:
global.disable_color_env: defaultfalseprocess.disable_color_env: inheritsglobal.disable_color_env