Add configuration options for logging

This commit is contained in:
2026-05-06 00:37:41 +02:00
parent c0cec78b03
commit b295738c0e
2 changed files with 16 additions and 2 deletions
+13 -1
View File
@@ -23,7 +23,19 @@
# openapi=
[logging]
# The file for the logs. Default is stdout ('/proc/self/fd/1').
# The target for logging. Possible values are `file` and `stdout`.
# Default is `stdout`. If the value is invalid, the default value is used
# instead if fail_strict is not true. If it is true and the value is
# invalid, it fails.
# logtarget=
# If one of 'true', 'yes', 't', or 'y', stdout is used as a fallback if
# the logging target is a file and the log file cannot be used for
# various reasons. Otherwise, the default value for the property
# logtarget is used as a fallback. Default is false.
# fail_strict=
# The file for the logs. Default is empty.
# logfile=
# The log level. Default is INFO.
+3 -1
View File
@@ -11,5 +11,7 @@ redoc=/redoc
openapi=/openapi.json
[logging]
logfile=/proc/self/fd/1
logtarget=stdout
logfile=
fail_strict=false
loglevel=INFO