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

        Provides an implementation of the ILoggerProvider interface that integrates Splat logging with
        Microsoft.Extensions.Logging.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class MicrosoftExtensionsLogProvider
class ILoggerProvider {
    <>
}
ILoggerProvider <|.. MicrosoftExtensionsLogProvider
class IDisposable {
    <>
}
IDisposable <|.. MicrosoftExtensionsLogProvider

Implements: ILoggerProvider, IDisposable

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
Dispose
CreateLoggerCreates a new ILogger instance.
Inherited members