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
categoryNamestringThe category name for messages produced by the logger.
Returns
Dispose()
public void Dispose()