SyncLogger class
Logging utility for SyncLayer SDK
Provides structured logging with different levels and optional callbacks for custom logging implementations.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
debug(
String message) → void - Log debug message
-
error(
String message, [dynamic error, StackTrace? stackTrace]) → void - Log error message
-
info(
String message) → void - Log info message
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
warning(
String message, [dynamic error]) → void - Log warning message
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → SyncLogger
-
no setter
Static Methods
-
setCustomLogger(
void logger(LogLevel level, String message, [dynamic error, StackTrace? stackTrace])?) → void - Set custom logger callback
-
setEnabled(
bool enabled) → void - Enable or disable logging
-
setMinLevel(
LogLevel level) → void - Set minimum log level