React to logging changes
This commit is contained in:
parent
b5816f22cf
commit
8c69989a5f
|
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal
|
|||
|
||||
public static IDisposable RequestScope(this ILogger logger, HttpContext httpContext)
|
||||
{
|
||||
return logger.BeginScopeImpl(new HostingLogScope(httpContext));
|
||||
return logger.BeginScope(new HostingLogScope(httpContext));
|
||||
}
|
||||
|
||||
public static void RequestStarting(this ILogger logger, HttpContext httpContext)
|
||||
|
|
|
|||
|
|
@ -577,7 +577,7 @@ namespace Microsoft.AspNetCore.Hosting
|
|||
|
||||
public ILogger CreateLogger(string name) => this;
|
||||
|
||||
public IDisposable BeginScopeImpl(object state)
|
||||
public IDisposable BeginScope<TState>(TState state)
|
||||
{
|
||||
var stringified = state.ToString();
|
||||
return this;
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ namespace Microsoft.AspNetCore.TestHost
|
|||
|
||||
private class VerifierLogger : ILogger<WebHost>
|
||||
{
|
||||
public IDisposable BeginScopeImpl(object state) => new NoopDispoasble();
|
||||
public IDisposable BeginScope<TState>(TState state) => new NoopDispoasble();
|
||||
|
||||
public bool IsEnabled(LogLevel logLevel) => true;
|
||||
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ namespace Microsoft.AspNetCore.TestHost
|
|||
|
||||
private class VerifierLogger : ILogger<WebHost>
|
||||
{
|
||||
public IDisposable BeginScopeImpl(object state) => new NoopDispoasble();
|
||||
public IDisposable BeginScope<TState>(TState state) => new NoopDispoasble();
|
||||
|
||||
public bool IsEnabled(LogLevel logLevel) => true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue