C# Logging
Use $csharp-tutor mode=logging.
Treat all user text after $csharp-logging as the logging concept, code review, ASP.NET Core logging question, Serilog question, security concern, or production diagnostics problem. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/logging-guidance.mdreferences/modern-dotnet-patterns.mdreferences/aspnet-guidance.mdreferences/security-review-map.mdreferences/errors-guidance.mdreferences/performance-review-map.mdreferences/official-sources.md
Prefer structured logging and safe operational context. Treat secret leakage, sensitive data exposure, lost exception stack traces, and noisy production logs as higher priority than stylistic logging preferences.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete logging decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the logging concern.
- Minimal example:
logger.LogInformation("Processed order {OrderId}", orderId);