DescopeLogger class

The DescopeLogger class can be used to customize logging functionality in the Descope SDK.

The default behavior is for log messages to be written to the standard output using the print() function.

You can also customize how logging functions in the Descope SDK by creating a subclass of DescopeLogger and overriding the DescopeLogger.output method. See the documentation for that method for more details.

Constructors

DescopeLogger({int level = debug})
Creates a new DescopeLogger object. Log level defaults to debug

Properties

hashCode int
The hash code for this object.
no setterinherited
level int
The maximum log level that should be printed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

log({required int level, required String message, List values = const []}) → void
Called by other code in the Descope SDK to output log messages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
output({required int level, required String message, required List debug}) → void
Formats the log message and prints it.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

debug → const int
error → const int
The severity of a log message.
info → const int