StaticFullLogger class¶
Defined in
Namespace: Splat
Assembly: Splat.Logging.dll
Full name: Splat.StaticFullLogger
Modifiers: public sealed
Summary¶
Provides a sealed implementation of IStaticFullLogger that wraps an IFullLogger instance for static logging scenarios.
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 StaticFullLogger
class IStaticFullLogger {
<>
}
IStaticFullLogger <|.. StaticFullLogger
Implements: IStaticFullLogger
Remarks¶
This class enables static-style logging by delegating all logging operations to the provided IFullLogger instance. It is typically used to facilitate logging in static contexts where dependency injection is not available. All log messages are automatically suffixed with the caller member name to aid in tracing log origins.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [StaticFullLogger](# class. |
Properties¶
| Name | Summary |
|---|---|
| Level | Gets the level at which the target will emit messages. |
Methods¶
| Name | Summary |
|---|---|
| Debug | Emits a debug log message with an exception. |
| Info | Emits a info log message with exception. This will emit details about a exception. This type of logging is not able to be localized. |
| Warn | Emits a warning log message with exception. This will emit details about a exception. This type of logging is not able to be localized. |
| Error | Emits a error log message with exception. This will emit details about a exception. This type of logging is not able to be localized. |
| Fatal | Emits a fatal log message with exception. This will emit details about a exception. This type of logging is not able to be localized. |
| Write | Writes a message to the target. |