.agents/skills/rustfs-logging-governance/SKILL.md
Use this skill when RustFS logging needs to be added, cleaned up, reviewed, or protected against regressions.
tracing or log macros before editing.info.scripts/check_logging_guardrails.sh when a broad cleanup removes a legacy pattern class.eventcomponentsubsystemstate or resultSee references/logging-governance.md for the event model, level policy, and anti-pattern list.
error: operation failure that affects behavior or security guarantees.warn: degraded path, fallback, suspicious input, or operator-actionable misconfiguration.info: low-frequency lifecycle or mode selection.debug: targeted diagnostics and low-volume detail.trace: hot-path and repetitive success-path events.When in doubt, lower the verbosity of normal success paths and keep structured detail in fields.
debug.info! lines.scripts/check_logging_guardrails.sh.info!Use the smallest relevant set:
cargo fmt --all --check
./scripts/check_logging_guardrails.sh
cargo check -p <affected-crate>
cargo test -p <affected-crate>
For broader Rust changes, add:
./scripts/check_unsafe_code_allowances.sh
./scripts/check_architecture_migration_rules.sh
cargo clippy -p <affected-crates> --all-targets -- -D warnings
event + component + subsystem + state/result + key context fields.crates/concurrency and crates/trusted-proxies are examples of this style for lifecycle, fallback, and cloud metadata logs.scripts/check_logging_guardrails.sh is the enforcement point for preventing removed log styles from returning.references/logging-governance.md when you need the detailed field set, anti-pattern examples, or guardrail update checklist.