diff --git a/config/server.conf b/config/server.conf index f2b581d..74fedf4 100644 --- a/config/server.conf +++ b/config/server.conf @@ -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. diff --git a/default_configuration.conf b/default_configuration.conf index a5e7be9..05ef51e 100644 --- a/default_configuration.conf +++ b/default_configuration.conf @@ -11,5 +11,7 @@ redoc=/redoc openapi=/openapi.json [logging] -logfile=/proc/self/fd/1 +logtarget=stdout +logfile= +fail_strict=false loglevel=INFO \ No newline at end of file