Scoped logger (#14)

Logging extensions
This commit is contained in:
2022-01-16 15:14:23 +01:00
committed by GitHub
parent 1c7d3a2be2
commit 721b444dda
5 changed files with 385 additions and 1 deletions
@@ -0,0 +1,13 @@
using Microsoft.Extensions.Logging;
using System.Logging;
namespace System.Extensions
{
public static class LoggingExtensions
{
public static ScopedLogger<T> CreateScopedLogger<T>(this ILogger<T> logger, string methodName, string flowIdentifier)
{
return ScopedLogger<T>.Create(logger, methodName, flowIdentifier);
}
}
}