Use global logger for xorm logs and add options (#1997)

Please let me know if this goes in the right direction. Needs some tests and docs.
This commit is contained in:
Robert Kaussow
2023-07-15 01:15:13 +02:00
committed by GitHub
parent 669abdf690
commit 443c23c58a
6 changed files with 159 additions and 1 deletions

View File

@@ -189,6 +189,16 @@ The following list describes all available server configuration options.
Configures the logging level. Possible values are `trace`, `debug`, `info`, `warn`, `error`, `fatal`, `panic`, `disabled` and empty.
### `WOODPECKER_LOG_XORM`
> Default: `false`
Enable XORM logs.
### `WOODPECKER_LOG_XORM_SQL`
> Default: `false`
Enable XORM SQL command logs.
### `WOODPECKER_DEBUG_PRETTY`
> Default: `false`