From 28a44bc5c1f3930f08198aa9729ceec56de7d996 Mon Sep 17 00:00:00 2001 From: "markus.gnigler" Date: Sun, 26 Jun 2022 22:28:34 +0200 Subject: [PATCH] Create default logging config in version 24 config folder #1754 --- 24/apache/config/logging.config.php | 13 +++++++++++++ 24/fpm-alpine/config/logging.config.php | 13 +++++++++++++ 24/fpm/config/logging.config.php | 13 +++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 24/apache/config/logging.config.php create mode 100644 24/fpm-alpine/config/logging.config.php create mode 100644 24/fpm/config/logging.config.php diff --git a/24/apache/config/logging.config.php b/24/apache/config/logging.config.php new file mode 100644 index 00000000..6fd7edf8 --- /dev/null +++ b/24/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/24/fpm-alpine/config/logging.config.php b/24/fpm-alpine/config/logging.config.php new file mode 100644 index 00000000..6fd7edf8 --- /dev/null +++ b/24/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/24/fpm/config/logging.config.php b/24/fpm/config/logging.config.php new file mode 100644 index 00000000..6fd7edf8 --- /dev/null +++ b/24/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