1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Comprehensive twyg configuration demonstrating all available options
#
# This configuration file showcases every available setting for the twyg logger.
# Use this as a reference for all configuration possibilities.
[]
# Master color toggle - set to false to disable all colors
= true
# Output destination: "stdout", "stderr", or a file path
= "stdout"
# Log level threshold: "trace", "debug", "info", "warn", "error"
= "trace"
# Include file name and line number in log output
= true
# Timestamp format options:
# - "Standard" -> "%Y-%m-%d %H:%M:%S"
# - "RFC3339" -> "%Y-%m-%dT%H:%M:%S%z"
# - "Simple" -> "%Y%m%d.%H%M%S"
# - "TimeOnly" -> "%H:%M:%S"
# - Custom -> any chrono format string
= { = "%Y-%m-%d %H:%M:%S%.3f" }
# Level padding configuration
= true
= 7
= "Right" # "Left" or "Right"
# Message separator between message and key-value pairs
= " | "
# Arrow character used as separator (default: "▶")
= "→"
# Fine-grained color configuration
# Each color field requires both fg (foreground) and bg (background).
# Use "Reset" for transparent/no color on either field.
# Omit entire field to use default color for that component.
#
# Available colors:
# Reset, Black, Red, Green, Yellow, Blue, Magenta, Cyan, White,
# HiBlack, HiRed, HiGreen, HiYellow, HiBlue, HiMagenta, HiCyan, HiWhite
[]
# Timestamp color (default: Green)
= { = "HiBlack", = "Reset" }
# Log level colors (each with custom foreground, transparent background)
= { = "HiMagenta", = "Reset" }
= { = "HiCyan", = "Reset" }
= { = "HiGreen", = "Reset" }
= { = "HiYellow", = "Reset" }
# Example with colored background for errors
= { = "White", = "Red" }
# Message text color (default: Green)
= { = "Cyan", = "Reset" }
# Arrow separator color (default: Cyan)
= { = "Magenta", = "Reset" }
# Caller information colors
= { = "HiYellow", = "Reset" }
= { = "Yellow", = "Reset" }
# Target/module name color (default: HiYellow)
= { = "HiBlue", = "Reset" }
# Structured logging key-value pair colors
= { = "Yellow", = "Reset" }
= { = "HiCyan", = "Reset" }