BnLogLevel
Namespace: BlazorNative.Core
The five framework log levels, plus the reserved Unset
ordinal 0.
public enum BnLogLevel
Inheritance Object → ValueType → Enum → BnLogLevel
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
| Name | Value | Description |
|---|---|---|
| Unset | 0 | Reserved: "unset". Never a threshold and never a message level — it resolves to BnLog.DefaultLevel. |
| Error | 1 | A fault. Ships in Release. |
| Warn | 2 | Something the author asked for was dropped, or a host contract was bent. Ships in Release — see the design's §4.3 finding. |
| Info | 3 | Success narration (boot lines). Suppressed in Release. |
| Debug | 4 | Developer detail, including full exception stacks. Suppressed in Release. |
| Verbose | 5 | Per-frame / per-patch tracing. Suppressed in Release. |