Miscellaneous
Write to App Log
Write a new log line to the 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 '{ "token": "string", "message": "string" }'{
"response": {
"success": true
},
"messages": [
{
"code": 0.1,
"text": "ok"
}
]
}{
"response": {},
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
]
}