mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-16 06:29:29 +00:00
17 lines
527 B
C#
17 lines
527 B
C#
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);
|
|
}
|
|
|
|
public static ScopedLogger<T> CreateScopedLogger<T>(this ILogger<T> logger, string methodName)
|
|
{
|
|
return ScopedLogger<T>.Create(logger, methodName, string.Empty);
|
|
}
|
|
} |