StaticFullLogger class¶
Attributes: [DebuggerDisplay("StaticFullLogger: {Level}")]
Defined in
Namespace: Splat Assembly: Splat.Logging.dll Full name: Splat.StaticFullLogger Modifiers: public sealed
Summary¶
View source (opens in a new tab)
The typed-argument overloads, kept apart from the rest of the type because the set is dictated by the logging contract: one overload per argument count, each forwarding the arguments on without boxing them.
Applies to
net11.0, net10.0, net471, net47, net472, net48, net481
Class hierarchy
classDiagram
class StaticFullLogger
class IStaticFullLogger {
<<interface>>
}
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](#Splat.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. |
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)