Skip to content

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

NameSummary
.ctor

Methods

NameSummary
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
CreateLoggerCreates a new ILogger (opens in a new tab) instance.
Inherited members