Releases: DavidFineboym/LoggingDecoratorGenerator
Releases · DavidFineboym/LoggingDecoratorGenerator
v1.10.0
What's Changed
- Add ability to report method durations as metric by @DavidFineboym in #7
v1.9.0
Improve performance by removing Stopwatch
allocation and checking ILogger.IsEnabled
once per method call instead of twice.
v1.8.0
Generate deterministic EventId
, if not supplied, from EventName
. Previous versions used -1
for EventId
if it wasn't supplied. The value is calculated the same way as .NET logging source generator going to do in .NET 8.
v1.7.0
Improved generator performance and added some error diagnostics to help identify usage errors.
v1.6.0
Add polymorphic support, e.g. if target interface implements IDisposable
then a pass-through implementation will be generated in the decorator.
v1.5.0
Add NotLoggedAttribute that allows to omit parameters and return value from logs.
v1.4.0
- Add optional exception logging
- Fix bug with method overloads resulting in duplicate names in the generated code
- Improve generated code readability by adding indentation
Release v1.3.1
First GitHub release