Logging

There is a logging API that can be used to log messages from ExApps in Nextcloud.

Send log message (OCS)

OCS endpoint: POST /apps/app_api/api/v1/log

Request data

{
    "level": "log_lvl(integer)",
    "message": "message",
}

The possible values of log_lvl are described here: Nextcloud Log level

Response data

If no error occurs, an empty response with status code 200 is returned. If the ExApp is not found or disabled, or the loglevel is invalid, an OCS Bad Request is returned.