> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/cennso-db/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/cennso-db/latest/troubleshooting/db-operator-logging.md).

# Change the log level

If issues occur during deployment of the database operator, it may be useful to enable more verbose logging. The `DBOperator` and `PostgreSQLOperator` Custom Resources share the same logging options. You can control the logging level using the following configuration option:

```yaml
spec:
  logging:
    level: {LOG-LEVEL}
```

The possible values for the log levels are:

- `DEBUG`
- `INFO`
- `ERROR`

By default, it is set to `INFO`.

In addition, you can enable structured logging using the following configuration option:

```yaml
spec:
  logging:
    structured: true
```
