Logging
Pumpkin allows you to customize what you want in your logs.
Configuring Logging
enabled: Boolean
Whether logging is enabled or not.
toml
[logging]
enabled = truelevel: Enum
The log verbosity level. Possible values are:
- Off
- Error
- Warn
- Info
- Debug
- Trace
toml
[logging]
enabled = true
level = "Debug"env: Boolean
Whether to allow choosing the log level by setting the RUST_LOG environment variable or not.
toml
[logging]
enabled = true
env = truethreads: Boolean
Whether to print threads in the logging message or not.
toml
[logging]
enabled = true
threads = falsecolor: Boolean
Whether to print to the console with color or not.
toml
[logging]
enabled = true
color = falsetimestamp: Boolean
Whether to print the timestamp in the message or not.
toml
[logging]
enabled = true
timestamp = falseDefault Config
By default, logging is enabled at the Info level and will print with color, threads, and timestamps.
toml
[logging]
enabled = true
level = "Info"
env = false
threads = true
color = true
timestamp = true