예제 #1
0
 public static IDisposable MeasureInformation <T>(this ISemanticLog log, T context, Action <T, IObjectWriter> objectWriter)
 {
     return(log.Measure(SemanticLogLevel.Information, context, objectWriter));
 }
예제 #2
0
 public static IDisposable MeasureInformation(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     return(log.Measure <None>(SemanticLogLevel.Information, null, (_, w) => objectWriter(w)));
 }
예제 #3
0
 public static IDisposable MeasureDebug(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     return(log.Measure(SemanticLogLevel.Debug, None.Value, (_, w) => objectWriter(w)));
 }
예제 #4
0
 public static IDisposable MeasureDebug(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     return(log.Measure(SemanticLogLevel.Debug, objectWriter));
 }
예제 #5
0
 public static IDisposable MeasureInformation <T>(this ISemanticLog log, T context, LogFormatter <T> action)
 {
     return(log.Measure(SemanticLogLevel.Information, context, action));
 }
예제 #6
0
 public static IDisposable MeasureInformation(this ISemanticLog log, LogFormatter action)
 {
     return(log.Measure(SemanticLogLevel.Information, None.Value, (_, w) => action(w)));
 }