MicrosoftExtensionsLoggingLogger class¶
Attributes: [DebuggerDisplay("Name={_logger.GetType()} Level={Level}")]
Defined in
Namespace: Splat.Microsoft.Extensions.Logging Assembly: Splat.Microsoft.Extensions.Logging.dll Full name: Splat.Microsoft.Extensions.Logging.MicrosoftExtensionsLoggingLogger Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Provides an adapter that wraps a Microsoft.Extensions.Logging.ILogger instance for use with the ILogger interface.
Applies to
net11.0, net10.0, net471, net47, net472, net48, net481
Class hierarchy
classDiagram
class MicrosoftExtensionsLoggingLogger
class ILogger {
<<interface>>
}
ILogger <|.. MicrosoftExtensionsLoggingLogger
Implements: ILogger
Remarks¶
This class enables integration between components expecting an ILogger implementation and the Microsoft.Extensions.Logging infrastructure. It delegates all logging operations to the underlying Microsoft.Extensions.Logging.ILogger instance supplied at construction. Thread safety and log level filtering are determined by the behavior of the wrapped logger.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [MicrosoftExtensionsLoggingLogger](#Splat.Microsoft.Extensions.Logging.MicrosoftExtensionsLoggingLogger) class. |
Properties¶
| Name | Summary |
|---|---|
| Level | Gets the level at which the target will emit messages. |
Methods¶
| Name | Summary |
|---|---|
| Write | Writes a message to the target. |
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)