Update the Logging Level API
On this page
This API is used to update the log level for a particular FusionAuth package.
This API is subject to change and should only be used under instruction from FusionAuth support.
Request#
Set the logging level for a named logger by sending the logger name and the desired level.
Request Headers#
Content-TypeThe request body is expected to be sent using form encoded data. Ensure your HTTP client sends the Content-Type request header set to application/x-www-form-urlencoded.
Request Body#
nameThe logger name for which you are requesting to update the current logging level.
levelThe requested logging level. Possible values are:
errorwarninfodebugtraceoff
Response#
| Code | Description |
|---|---|
| 200 | The request succeeded. The response contains a JSON body. |
| 400 | The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present. |
| 401 | FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses. |
| 500 | FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response is empty. |
Response Body#
levelThe logging level. If the request was successful, this value should be equal to the request value. Possible values are:
errorwarninfodebugtraceoff
{
"level": "info"
}Related
API documentation for the FusionAuth Retrieve the Logging Level API.
API documentation for the FusionAuth Export System Logs API.
Learn about the APIs for retrieving and updating the system configuration.
API documentation for the Rebuild the Elasticsearch Index API.