Artboard
Miscellaneous

Write to App Log

POST
/otto/api/app-log

Write a new log line to the app log.

Request Body

POST /otto/api/app-log Request body

application/json
  1. body
token*string
level?string
Default"info"
Value in"error""warn""info""http""verbose""debug"
message*string

Response Body

POST /otto/api/app-log Positive response

application/json
  1. response
messages*array<>
response*
Example Request
curl -X POST 'https://your.server.net/otto/api/app-log' \  -H 'Content-Type: application/json' \  -d '{  "level": "info",  "message": "This is an example log message"}'
Example Response
{  "messages": [    {      "code": 0,      "text": "ok"    }  ],  "response": {}}

Was this page helpful?