LogLevel enum

Log levels for the SDK (standardized across all platforms)

Inheritance
Available extensions

Values

off → const LogLevel

No logging (0)

const LogLevel(0, 'OFF')
error → const LogLevel

Error level logging (1)

const LogLevel(1, 'ERROR')
warn → const LogLevel

Warning level logging (2)

const LogLevel(2, 'WARN')
info → const LogLevel

Info level logging (3)

const LogLevel(3, 'INFO')
debug → const LogLevel

Debug level logging (4)

const LogLevel(4, 'DEBUG')
trace → const LogLevel

Trace level logging (5)

const LogLevel(5, 'TRACE')

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
stringValue String
String representation
final
value int
Numeric value for comparison
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldLog(LogLevel messageLevel) bool
Check if this level should log given another level
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromString(String level) LogLevel
Convert from string to LogLevel

Constants

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