Extensions for Microsoft's ILogger
for common use cases.
Timing extensions for logging operations: here
This lets you perfom simple logging for timed operations, while simplifying the boilerplate:
ILogger logger = // assign instance
using (var operation = logger.BeginOperation("Processing large file {FilePath}", filePath))
{
operation.Complete();
}
Yields:
info: Processing large file /d/test/image.png completed in 822.5 ms
Licensed under Apache 2.0