MicrosoftExtensionsLogProvider class¶
Defined in
Namespace: Splat.Microsoft.Extensions.Logging
Assembly: Splat.Microsoft.Extensions.Logging.dll
Full name: Splat.Microsoft.Extensions.Logging.MicrosoftExtensionsLogProvider
Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Provides an implementation of the ILoggerProvider interface that integrates Splat logging with
Microsoft.Extensions.Logging.
Applies to
net11.0, net10.0, net471, net47, net472, net48, net481
Class hierarchy
classDiagram
class MicrosoftExtensionsLogProvider
class ILoggerProvider {
<<interface>>
}
ILoggerProvider <|.. MicrosoftExtensionsLogProvider
class IDisposable {
<<interface>>
}
IDisposable <|.. MicrosoftExtensionsLogProvider
Implements: ILoggerProvider (opens in a new tab), IDisposable (opens in a new tab)
Remarks¶
This provider enables applications using Microsoft.Extensions.Logging to route log messages through the Splat logging infrastructure. It is typically used to bridge logging between libraries or frameworks that rely on different logging abstractions. Instances of this class are intended to be registered with a logging factory or dependency injection container.
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| CreateLogger | Creates a new ILogger (opens in a new tab) instance. |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)