Skip to main content

BnLogLevel

Namespace: BlazorNative.Core

The five framework log levels, plus the reserved Unset ordinal 0.

public enum BnLogLevel

Inheritance ObjectValueTypeEnumBnLogLevel
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Remarks:

The ordinals are a WIRE CONTRACT: the shell passes one of them in BlazorNativeInitOptions.LogLevel (offset 28), exactly as it passes a PlatformKind ordinal at offset 24. Ordinal 0 means "the shell said nothing" and resolves to BnLog.DefaultLevel — which is what keeps a shell that predates the field working unchanged, since it leaves the field zero. Never renumber.

Fields

NameValueDescription
Unset0Reserved: "unset". Never a threshold and never a message level — it resolves to BnLog.DefaultLevel.
Error1A fault. Ships in Release.
Warn2Something the author asked for was dropped, or a host contract was bent. Ships in Release — see the design's §4.3 finding.
Info3Success narration (boot lines). Suppressed in Release.
Debug4Developer detail, including full exception stacks. Suppressed in Release.
Verbose5Per-frame / per-patch tracing. Suppressed in Release.