From 305929f9af13e2c06c5fc365f36960432de08117 Mon Sep 17 00:00:00 2001 From: "markus.gnigler" Date: Sun, 26 Jun 2022 22:28:28 +0200 Subject: [PATCH] Create default logging config in version 23 config folder #1754 --- 23/apache/config/logging.config.php | 13 +++++++++++++ 23/fpm-alpine/config/logging.config.php | 13 +++++++++++++ 23/fpm/config/logging.config.php | 13 +++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 23/apache/config/logging.config.php create mode 100644 23/fpm-alpine/config/logging.config.php create mode 100644 23/fpm/config/logging.config.php diff --git a/23/apache/config/logging.config.php b/23/apache/config/logging.config.php new file mode 100644 index 00000000..6fd7edf8 --- /dev/null +++ b/23/apache/config/logging.config.php @@ -0,0 +1,13 @@ + getenv('LOGLEVEL') ?: 2, + 'logtimezone' => getenv('LOGTIMEZONE') ?: 'UTC', + 'syslog_tag' => getenv('LOGTAG') ?: 'Nextcloud', +); + +if (getenv('LOGFILE')) { + $CONFIG['logfile'] = getenv('LOGFILE'); +} else { + $CONFIG['logfile'] = getenv('NEXTCLOUD_DATA_DIR') ?: '/var/www/nextcloud' + '/nextcloud.log'; +} \ No newline at end of file diff --git a/23/fpm-alpine/config/logging.config.php b/23/fpm-alpine/config/logging.config.php new file mode 100644 index 00000000..6fd7edf8 --- /dev/null +++ b/23/fpm-alpine/config/logging.config.php @@ -0,0 +1,13 @@ + getenv('LOGLEVEL') ?: 2, + 'logtimezone' => getenv('LOGTIMEZONE') ?: 'UTC', + 'syslog_tag' => getenv('LOGTAG') ?: 'Nextcloud', +); + +if (getenv('LOGFILE')) { + $CONFIG['logfile'] = getenv('LOGFILE'); +} else { + $CONFIG['logfile'] = getenv('NEXTCLOUD_DATA_DIR') ?: '/var/www/nextcloud' + '/nextcloud.log'; +} \ No newline at end of file diff --git a/23/fpm/config/logging.config.php b/23/fpm/config/logging.config.php new file mode 100644 index 00000000..6fd7edf8 --- /dev/null +++ b/23/fpm/config/logging.config.php @@ -0,0 +1,13 @@ + getenv('LOGLEVEL') ?: 2, + 'logtimezone' => getenv('LOGTIMEZONE') ?: 'UTC', + 'syslog_tag' => getenv('LOGTAG') ?: 'Nextcloud', +); + +if (getenv('LOGFILE')) { + $CONFIG['logfile'] = getenv('LOGFILE'); +} else { + $CONFIG['logfile'] = getenv('NEXTCLOUD_DATA_DIR') ?: '/var/www/nextcloud' + '/nextcloud.log'; +} \ No newline at end of file