ApiMateLogger class

Logger for ApiMate that pretty-prints API request, response, and error.

Constructors

ApiMateLogger.new()

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 Properties

useColor bool
getter/setter pair
useEmoji bool
getter/setter pair

Static Methods

logError(dynamic error) → void
Logs the error message.
logRequest(String path) → void
Logs the request path.
logResponse(int? statusCode, dynamic data) → void
Logs the response status and data.