Skip to content

AllocationFreeLoggerBase class

Defined in

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

Summary

View source

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

net10.0, net9.0, net8.0, net462, 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