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