DebugLogger class

Debug logger class for Zypay SDK

Constructors

DebugLogger(DebugConfig config, [String componentName = 'ZypaySDK'])

Properties

componentName String
final
config DebugConfig
final
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, [dynamic data]) → void
Log a debug message
error(String message, [dynamic data]) → void
Log an error message
info(String message, [dynamic data]) → void
Log an info message
logNetworkRequest(String method, String url, [dynamic data]) → void
Log network request
logNetworkResponse(String method, String url, int status, [dynamic data]) → void
Log network response
logPerformance(String operation, Duration duration, [dynamic data]) → void
Log performance metric
logSocketConnection(String status, [dynamic data]) → void
Log socket connection status
logSocketEvent(String event, [dynamic data]) → void
Log socket event
logStateChange(dynamic oldState, dynamic newState, [String? action]) → void
Log state change
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startTimer(String operation) PerformanceTimer
Create a performance timer
toString() String
A string representation of this object.
inherited
warn(String message, [dynamic data]) → void
Log a warning message

Operators

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