LoggerApi class

The LoggerApi class represents an API client for logging data to a specified endpoint. It provides a method to send log data to the server using HTTP POST request.

Constructors

LoggerApi(String apiPrefix, String token)
Constructs a LoggerApi instance with the specified apiPrefix and token. apiPrefix - The base URL prefix for the logging API. token - The authentication token used for API requests.

Properties

apiPrefix String
final
dio ↔ Dio?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postLogData(Map<String, dynamic> body) Future<Response?>
Sends log data to the server using an HTTP POST request. body - The log data to be sent in the request body. Returns a Future
toString() String
A string representation of this object.
inherited

Operators

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