WrappingLogLevelLogger class¶
Attributes: [DebuggerDisplay("WrappingLogLevelLogger: {Level}")]
Defined in
Namespace: Splat Assembly: Splat.Logging.dll Full name: Splat.WrappingLogLevelLogger Modifiers: public
Summary¶
View source (opens in a new tab)
Provides an ILogger implementation that prefixes log messages with their log level before delegating to an inner
logger.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class WrappingLogLevelLogger
class ILogger {
<<interface>>
}
ILogger <|.. WrappingLogLevelLogger
Implements: ILogger
Remarks¶
This logger wraps another ILogger and automatically prepends the log level to each message. It is useful for scenarios where the inner logger does not include log level information in its output. All logging operations are delegated to the specified inner logger.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Provides an ILogger implementation that prefixes log messages with their log level before delegating to an inner logger. |
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)