Artboard
Miscellaneous

Write to App Log

Write a new log line to the app log.

POST
/otto/api/app-log

Request Body

application/json

POST /otto/api/app-log Request body

token*string
level?string
Default"info"
Value in"error" | "warn" | "info" | "http" | "verbose" | "debug"
message*string

Response Body

application/json

application/json

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"  }'
{
  "response": {},
  "messages": [
    {
      "code": 0,
      "text": "ok"
    }
  ]
}
{
  "response": {},
  "messages": [
    {
      "code": 18011,
      "text": "OttoFMS sample error"
    }
  ]
}