Expand description
Logging configuration types and parsing.
This module provides configuration for the Nautilus logging subsystem via
the LoggerConfig and FileWriterConfig types.
§Spec String Format
The NAUTILUS_LOG environment variable uses a semicolon-separated format:
stdout=Info;fileout=Debug;RiskEngine=Error;my_crate::module=Debug;is_colored§Supported Keys
| Key | Type | Description |
|---|---|---|
stdout | Log level | Maximum level for stdout output. |
fileout | Log level | Maximum level for file output. |
is_colored | Boolean | Enable ANSI colors (default: true). |
print_config | Boolean | Print config to stdout at startup. |
log_components_only | Boolean | Only log components with explicit filters. |
<component> | Log level | Component-specific log level (exact match). |
<module::path> | Log level | Module-specific log level (prefix match). |
§Log Levels
Off, Error, Warn, Info, Debug, Trace (case-insensitive)
§Boolean Values
- Bare flag:
is_colored→ true - Explicit:
is_colored=true,is_colored=false,is_colored=0,is_colored=no
Structs§
- Logger
Config - Configuration for the Nautilus logger.