WrappingLogLevelLogger class¶
Defined in
Namespace: Splat
Assembly: Splat.Logging.dll
Full name: Splat.WrappingLogLevelLogger
Modifiers: public
Summary¶
Provides an ILogger implementation that prefixes log messages with their log level before delegating to an inner
logger.
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 WrappingLogLevelLogger
class ILogger {
<>
}
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. |