LogLevel enum

Represents the different levels of logging available in the CSQ SDK.

Log levels determine the verbosity of logs printed by the SDK, helping developers monitor and debug the integration.

The levels follow a hierarchical order from most verbose (trace) to least (none). Each level includes messages from all more severe levels. For example, info includes important, warning and error messages.

Inheritance
Implemented types
Available extensions

Values

all → const LogLevel

Accept all log levels

This is the lowest level, allowing all messages to pass through without any filtering.

const LogLevel(value: 0)
trace → const LogLevel

Enables the most verbose logging output to aid in identifying and diagnosing SDK integration issues.

Full event details are printed at this level.

Enable this level when extensive information is required to troubleshoot installation or tracking problems, or when preparing detailed logs to accompany an issue report.

This level also includes important, error, warning, info, and debug messages.

const LogLevel(value: 200)
debug → const LogLevel

CSQ will print messages that the implementing developer may find helpful. Messages may include things such as invalid environment ID value, truncated event names, or attempting to track an event before recording has started.

This level is recommended for implementing developers during the development process to help with debugging normal installation and tracking issues.

This level also includes important, error, warning and info messages.

const LogLevel(value: 400)
info → const LogLevel

CSQ will print messages that are useful in a production environment, such as when recording starts/stops, when a batch of events is successfully sent, or when a new session has begun.

This level is recommended for production environments so that developers can see CSQ lifecycle messages in their own logging environment.

This level also includes important, error and warning messages.

const LogLevel(value: 800)
warning → const LogLevel

CSQ will print warning messages for recoverable errors, such as when unexpected data types are passed into the SDK or the network is unreachable.

This level also includes important and error messages.

const LogLevel(value: 900)
error → const LogLevel

CSQ will only print the most critical log messages, such as when the SDK encounters an error and needs to shutdown.

This level also includes important messages.

const LogLevel(value: 1000)
important → const LogLevel

CSQ will print messages that are critical for the user to know about SDK operations and status updates.

This level is used for public-facing messages of high importance.

const LogLevel(value: 1500)
none → const LogLevel

CSQ will not print any log messages.

const LogLevel(value: 2000)

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
value int
The log level value
final

Methods

compareTo(LogLevel other) int
Compares this object to another object.
override
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 <(LogLevel pete5471) bool
operator <=(LogLevel pete5471) bool
operator ==(Object other) bool
The equality operator.
inherited
operator >(LogLevel pete5471) bool
operator >=(LogLevel pete5471) bool

Constants

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