public static ILogScope WithCorrelationHandle(this ILogScope scope, [NotNull] object correlationHandle) { if (correlationHandle == null) { throw new ArgumentNullException(nameof(correlationHandle)); } return(scope.With(nameof(WithCorrelationHandle), correlationHandle)); }
public static ILogScope WithCorrelationContext(this ILogScope scope, object correlationContext) { return(scope.With("CorrelationContext", correlationContext)); }
public static ILogScope WithCorrelationId(this ILogScope scope, object correlationId) { return(scope.With("CorrelationId", correlationId)); }
/// <summary> /// Attaches elapsed-milliseconds to each log. /// </summary> public static ILogScope AttachElapsed(this ILogScope scope) { return(scope.With(new ElapsedMilliseconds(nameof(Elapsed)))); }
public static ILogScope WithRoutine(this ILogScope scope, string identifier) { return(scope.With(nameof(WithRoutine), identifier)); }