AFS_AETHER_LOG
Deep-dive reference for:
AFS_AETHER_LOG
Status
active
Audience
production/user
Type and Default
- Type: string enum (
LogLevel). - Accepted values:
error,warn,info,debug,trace(case-insensitive in env input). - Default:
info.
What It Does
Sets the baseline Aether logging level used to build the tracing filter when RUST_LOG
is not set.
In practice, this controls how much log detail Aether emits:
error: only errorswarn: warnings and errorsinfo: normal operational logs (default)debug: debug + info/warn/errortrace: most verbose
Input Surfaces
- Env:
AFS_AETHER_LOG=<level> - Config file (
aether.toml):log_level = "<level>" - CLI:
aether mount --log-level <level>- global
--quiet(forceserror) - global
--verbose/-v(forcesdebugwith one-v,tracewith-vv)
Resolution and Override Order
- Built-in default (
info) aether.toml(log_level)- Environment (
AFS_AETHER_LOG) - CLI overrides (
--log-level,--quiet,--verbose)
Important runtime caveat:
- If
RUST_LOGis set and valid, tracing uses that env filter instead of theAFS_AETHER_LOG-derived level.
Reload Behavior (SIGHUP)
- Config reload detects
log_levelchanges and attempts hot-apply. - If logger filter source is config-derived, new level is applied without restart.
- If
RUST_LOGoverride is active, reload logs that the level change is skipped.
Validation
- Invalid
AFS_AETHER_LOGenv value fails config load with an explicit "expected one of error, warn, info, debug, trace" error. - Invalid
log_levelinaether.tomlfails TOML deserialization. - Invalid CLI
--log-levelvalues are rejected by clap argument parsing.
Examples
- Set default runtime verbosity from env:
AFS_AETHER_LOG=debug aether mount --session-id s1 --mount-dir /mnt/aether
- Override env/config at invocation time:
aether mount --log-level trace --session-id s1 --mount-dir /mnt/aether
- Force quiet output:
aether --quiet mount --session-id s1 --mount-dir /mnt/aether
Related Variables
AFS_AETHER_LOG_FORMATAFS_AETHER_LOG_DESTINATIONAFS_AETHER_LOG_PATHAFS_AETHER_LOG_ROTATIONAFS_AETHER_LOG_ROTATION_MAX_BYTESAFS_AETHER_LOG_ROTATION_MAX_FILES
Primary Implementation Sources
packages/aether/src/config/types/model_defaults.rspackages/aether/src/config/types/file_config_loader.rspackages/aether/src/config/types/apply_env.rspackages/aether/src/config/types/config_resolution.rspackages/aether/src/observability/logging.rspackages/aether/src/config/reload.rspackages/aether-cli/src/cli/args/cli_option_args.rspackages/aether-cli/src/cli/args/cli_root_commands.rs