public static ILogScope BeginScope(this ILogger logger, out object correlationId) { var scope = LogScope.Push(); scope.WithCorrelationId(out correlationId); return(scope); }
public static LogScope BeginScope(this ILogger logger, SoftString name, object state, Action <Log> logAction) { return(LogScope.Push(name, Reflection.GetProperties(state), logAction)); }
public static ILogScope BeginScope(this ILogger logger) { return(LogScope.Push().WithCorrelationId()); }