Getting started with logridge
http
API
Use the following curl command to interact with the API. This example creates a new log entry with the title "test". Note that all of the data values you provide to are equally optional to best fit your needs.
Using a wrapper/abstration over this HTTP request is recommended!
Request
curl --request POST \ --url https://logger-commercial.pockethost.io/api/log/<--YOUR_APPLICATION_ID--> \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: <--YOUR_APPLICATION_SECRET-->' \ --data '{ "title": "test", "detail": "test", "level": ("trace" | "debug" | "info" | "warning" | "error" | "critical") "submitted_on": "2022-01-01 10:00:00.123Z", "session": "test", "session_inc": 123, "identifier": "internal_id", "thread": "0x00", "host": "test", "channel": "test", "source": "test" }'
Response
"success": true