|
|
@ -37,9 +37,9 @@ namespace Microsoft.Tye.Hosting |
|
|
_logs = logs; |
|
|
_logs = logs; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public IDisposable? BeginScope<TState>(TState state) |
|
|
public IDisposable BeginScope<TState>(TState state) |
|
|
{ |
|
|
{ |
|
|
return null; |
|
|
return new NoOpScope(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public bool IsEnabled(LogLevel logLevel) |
|
|
public bool IsEnabled(LogLevel logLevel) |
|
|
@ -59,6 +59,13 @@ namespace Microsoft.Tye.Hosting |
|
|
_logs.OnNext(exception.ToString()); |
|
|
_logs.OnNext(exception.ToString()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private sealed class NoOpScope : IDisposable |
|
|
|
|
|
{ |
|
|
|
|
|
public void Dispose() |
|
|
|
|
|
{ |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|