Module config

Module config 

Source
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

KeyTypeDescription
stdoutLog levelMaximum level for stdout output.
fileoutLog levelMaximum level for file output.
is_coloredBooleanEnable ANSI colors (default: true).
print_configBooleanPrint config to stdout at startup.
log_components_onlyBooleanOnly log components with explicit filters.
<component>Log levelComponent-specific log level (exact match).
<module::path>Log levelModule-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§

LoggerConfig
Configuration for the Nautilus logger.