PostHogLogSeverity enum

Severity level for a structured log record captured via Posthog().captureLog() or the Posthog().logger facade.

The levels map to OpenTelemetry severity numbers (trace=1, debug=5, info=9, warn=13, error=17, fatal=21). The mapping is performed by the native SDKs; the Flutter layer forwards the level by name (lowercase), which both the Android and Apple SDKs parse case-insensitively.

Inheritance
Available extensions

Values

trace → const PostHogLogSeverity

Finest-grained diagnostic detail. High-volume; usually only enabled while diagnosing a problem.

debug → const PostHogLogSeverity

Diagnostic detail useful during development.

info → const PostHogLogSeverity

Default level for regular runtime events.

warn → const PostHogLogSeverity

Something unexpected that is not yet an error.

error → const PostHogLogSeverity

A failure that should be looked at.

fatal → const PostHogLogSeverity

A critical failure.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PostHogLogSeverity>
A constant List of the values in this enum, in order of their declaration.