# Log-as-Control-Flow

Record: `arch:log-as-control-flow`
Kind: anti-pattern
Layer: [Enforcement Core](https://banes-lab.com/records/layer/enforcement-core.md)
Severity: discouraged
Scope: correctness_verification, resilience_recovery
Canonical: https://banes-lab.com/ontology#arch-log-as-control-flow

## Repair

- Refactored by: return_typed_error, fail_fast_or_fallback, add_recovery_policy, alert_critical_failure
- Detected by: catch_log_continue, logged_error_without_return_or_throw, critical_log_no_alert
- Violated by: Log errors or warnings as if logging itself handles the failure, while the system continues without recovery, propagation, or safe fallback.

## referenced-by

- [Logging](https://banes-lab.com/records/arch/logging.md)
