Table of Contents

Class MicrosoftExtensionsLogProvider

Namespace
Splat.Microsoft.Extensions.Logging
Assembly
Splat.Microsoft.Extensions.Logging.dll

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

public sealed class MicrosoftExtensionsLogProvider : ILoggerProvider, IDisposable
Inheritance
MicrosoftExtensionsLogProvider
Implements
Extension Methods

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

MicrosoftExtensionsLogProvider()

public MicrosoftExtensionsLogProvider()

Methods

CreateLogger(string)

Creates a new ILogger instance.

public ILogger CreateLogger(string categoryName)

Parameters

categoryName string

The category name for messages produced by the logger.

Returns

ILogger

The instance of ILogger that was created.

Dispose()

public void Dispose()