dotnet-logging-exceptions
Installation
SKILL.md
.NET Logging And Exceptions
Logging Decisions
- Log a domain-relevant failure or skip at the closest boundary that both detects or classifies it and owns the operational response.
- Log a failure once. Do not log and rethrow when an outer boundary will record the same failure.
- Do not hide the logging decision inside retrieval, mapping, factory, or convenience helpers.
- Extract an instance collaborator only for redaction, normalization, formatting, mapping, or classification.
- Keep the decision whether and at what level to log at the detection site.