AllocationFreeLoggerBase class¶
Attributes: [DebuggerDisplay("AllocationFreeLoggerBase: {Level}")]
Defined in
Namespace: Splat
Assembly: Splat.Logging.dll
Full name: Splat.AllocationFreeLoggerBase
Modifiers: public abstract
Summary¶
The shared bodies of the typed-argument overloads: every level writes the same way, so each overload passes its level and arguments to one of these helpers.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class AllocationFreeLoggerBase
class IAllocationFreeLogger {
<>
}
IAllocationFreeLogger <|.. AllocationFreeLoggerBase
class IAllocationFreeErrorLogger {
<>
}
IAllocationFreeErrorLogger <|.. AllocationFreeLoggerBase
class ILogger {
<>
}
ILogger <|.. AllocationFreeLoggerBase
Implements: IAllocationFreeLogger, IAllocationFreeErrorLogger, ILogger
Remarks¶
Initializes a new instance of the AllocationFreeLoggerBase class.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Base class for a logger the provides allocation free logging. |
Properties¶
| Name | Summary |
|---|---|
| Level | Gets the level at which the target will emit messages. |
| IsDebugEnabled | Gets a value indicating whether the logger currently emits debug logs. |
| IsInfoEnabled | Gets a value indicating whether the logger currently emits information logs. |
| IsWarnEnabled | Gets a value indicating whether the logger currently emits warning logs. |
| IsErrorEnabled | Gets a value indicating whether the logger currently emits error logs. |
| IsFatalEnabled | Gets a value indicating whether the logger currently emits fatal logs. |
Methods¶
| Name | Summary |
|---|---|
| Write | Writes a message to the target. |
| Debug | Emits a message using formatting to the debug log. |
| Error | Emits a message using formatting to the error log. |
| Fatal | Emits a message using formatting to the fatal log. |
| Info | Emits a message using formatting to the info log. |
| Warn | Emits a message using formatting to the warning log. |