Class ExtensionLoggerProvider
Inheritance
System.Object
ExtensionLoggerProvider
Implements
Microsoft.Extensions.Logging.ILoggerProvider
System.IDisposable
Namespace: DirectScale.Disco.Extension.Middleware.Logging
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public sealed class ExtensionLoggerProvider : Object, ILoggerProvider, IDisposable
Constructors
ExtensionLoggerProvider(IApiService, IOptionsMonitor<ExtensionLoggerConfiguration>)
Declaration
public ExtensionLoggerProvider(IApiService apiService, IOptionsMonitor<ExtensionLoggerConfiguration> config)
Parameters
Type | Name | Description |
---|---|---|
IApiService | apiService | |
Microsoft.Extensions.Options.IOptionsMonitor<ExtensionLoggerConfiguration> | config |
Methods
CreateLogger(String)
Declaration
public ILogger CreateLogger(string categoryName)
Parameters
Type | Name | Description |
---|---|---|
System.String | categoryName |
Returns
Type | Description |
---|---|
Microsoft.Extensions.Logging.ILogger |
Dispose()
Declaration
public void Dispose()
Implements
Microsoft.Extensions.Logging.ILoggerProvider
System.IDisposable