JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.app.log({
...
})true{
"data": "<unknown>",
"errors": [
{}
],
"success": false
}API Reference
Write log
Write a log entry to the server logs with specified level and metadata.
POST
/
log
JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.app.log({
...
})true{
"data": "<unknown>",
"errors": [
{}
],
"success": false
}Body
application/json
Response
Log entry written successfully
The response is of type boolean.