Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging.
1.13k
stars
80
forks
source link
Use InterpolatedStringHandler for `ZLog` #82
Closed
hadashiA closed 8 months ago
Significant changes to ZLog signatures.
ZLog<T1, T2, ...>
ZLog(..., ref ZLoggerInterpolatedStringHandler)
[InterpolatedStringHandler]
and parsing of the format string is completed at compile time.Chanegs in this PR
ZLoggerInterpolatedStringHandler
, and newZLog(...)
methods.IZLoggerFormattable
interface from ILogger.IZLoggerEntry
to newZLoggerEntry<TState>
way.IZLoggerFormatter
implementations to new way of usingIZLoggerFormattable
.