AppLogger class

AppLogger provides structured logging for app events, Dio requests, responses, and errors.

Constructors

AppLogger()

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

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 ==(Object other) bool
The equality operator.
inherited

Static Methods

logDioError(DioException error) Future<void>
Logs a Dio error
logError(String message, {String? type}) Future<void>
Logs a generic error with optional type
logRequest(String baseUrl, String path, {Object? data, Map<String, dynamic>? query, Map<String, dynamic>? headers}) Future<void>
Logs a Dio request
logResponse(Response response) Future<void>
Logs a Dio response