dotnet-source-gen-logging
Installation
SKILL.md
Convert existing logging calls to use the LoggerMessage source generator for high-performance, AOT-compatible logging with no boxing overhead and compile-time template parsing.
When to Use
- Optimizing logging performance in hot paths
- Preparing for Native AOT deployment
- Organizing scattered log messages into logical groupings
- Standardizing EventIds across the codebase
Steps
- Find ILogger usages and logging calls
- Search for
ILoggerfield/parameter declarations - Find all logging calls:
LogInformation,LogWarning,LogError,LogDebug,LogTrace,LogCritical - Note the log message templates and parameters
- Search for