Skip to content

AllocationFreeLoggerBase class

Attributes: [DebuggerDisplay("AllocationFreeLoggerBase: {Level}")]

Defined in

Namespace: Splat Assembly: Splat.Logging.dll Full name: Splat.AllocationFreeLoggerBase Modifiers: public abstract

Summary

View source

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

NameSummary
.ctorBase class for a logger the provides allocation free logging.

Properties

NameSummary
LevelGets the level at which the target will emit messages.
IsDebugEnabledGets a value indicating whether the logger currently emits debug logs.
IsInfoEnabledGets a value indicating whether the logger currently emits information logs.
IsWarnEnabledGets a value indicating whether the logger currently emits warning logs.
IsErrorEnabledGets a value indicating whether the logger currently emits error logs.
IsFatalEnabledGets a value indicating whether the logger currently emits fatal logs.

Methods

NameSummary
WriteWrites a message to the target.
DebugEmits a message using formatting to the debug log.
ErrorEmits a message using formatting to the error log.
FatalEmits a message using formatting to the fatal log.
InfoEmits a message using formatting to the info log.
WarnEmits a message using formatting to the warning log.

Derived types

Inherited members

See also