> For the complete documentation index, see [llms.txt](https://fusionauth.io/docs/llms.txt)

# Update the Logging Level

API documentation for the FusionAuth Update the Logging Level API.

# Update the Logging Level

This API is used to update the log level for a particular FusionAuth package.

caution

This API is subject to change and should only be used under instruction from FusionAuth support.

## Request

[!Global API Key Authentication](https://fusionauth.io/docs/apis/authentication.md#global-api-key-authentication)

Update the logging level by logger name

POST/api/logger

### Request Headers

`Content-Type`Stringrequired

The 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 Parameters

`name`Stringrequired

The logger name for which you are requesting to update the current logging level.

`level`Stringrequired

The requested logging level. Possible values are:

*   `error`
*   `warn`
*   `info`
*   `debug`
*   `trace`
*   `off`

## Response

*Response Codes*

| Code | Description |
| --- | --- |
| 200 | The request was successful. The response will contain a JSON body. |
| 400 | The request was invalid and/or malformed. The response will contain an [Errors](https://fusionauth.io/docs/apis/errors.md) JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
| 401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See [Authentication](https://fusionauth.io/docs/apis/authentication.md). |
| 500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |

### Response Body

`level`String

The logging level. If the request was successful, this value should be equal to the request value. Possible values are:

*   `error`
*   `warn`
*   `info`
*   `debug`
*   `trace`
*   `off`

*Example JSON Response*

```json
{
  "level": "info"
}
```