public static IDisposable MeasureInformation <T>(this ISemanticLog log, T context, Action <T, IObjectWriter> objectWriter) { return(log.Measure(SemanticLogLevel.Information, context, objectWriter)); }
public static IDisposable MeasureInformation(this ISemanticLog log, Action <IObjectWriter> objectWriter) { return(log.Measure <None>(SemanticLogLevel.Information, null, (_, w) => objectWriter(w))); }
public static IDisposable MeasureDebug(this ISemanticLog log, Action <IObjectWriter> objectWriter) { return(log.Measure(SemanticLogLevel.Debug, None.Value, (_, w) => objectWriter(w))); }
public static IDisposable MeasureDebug(this ISemanticLog log, Action <IObjectWriter> objectWriter) { return(log.Measure(SemanticLogLevel.Debug, objectWriter)); }
public static IDisposable MeasureInformation <T>(this ISemanticLog log, T context, LogFormatter <T> action) { return(log.Measure(SemanticLogLevel.Information, context, action)); }
public static IDisposable MeasureInformation(this ISemanticLog log, LogFormatter action) { return(log.Measure(SemanticLogLevel.Information, None.Value, (_, w) => action(w))); }