mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-16 22:39:29 +00:00
a8de6cd15d
Include NetStandard in NetCore
18 lines
663 B
C#
18 lines
663 B
C#
using Microsoft.Extensions.Logging;
|
|
using System.Logging;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace System.Extensions.Core;
|
|
public static class LoggingExtensions
|
|
{
|
|
public static ScopedLogger<T> CreateScopedLogger<T>(this ILogger<T> logger, string flowIdentifier, [CallerMemberName] string? methodName = default)
|
|
{
|
|
return ScopedLogger<T>.Create(logger, methodName ?? string.Empty, flowIdentifier);
|
|
}
|
|
|
|
public static ScopedLogger<T> CreateScopedLogger<T>(this ILogger<T> logger, [CallerMemberName] string? methodName = default)
|
|
{
|
|
return ScopedLogger<T>.Create(logger, methodName ?? string.Empty, string.Empty);
|
|
}
|
|
}
|