diff --git a/22/apache/config/logging.config.php b/22/apache/config/logging.config.php new file mode 100644 index 000000000..6fd7edf8c --- /dev/null +++ b/22/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/22/fpm-alpine/config/logging.config.php b/22/fpm-alpine/config/logging.config.php new file mode 100644 index 000000000..6fd7edf8c --- /dev/null +++ b/22/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/22/fpm/config/logging.config.php b/22/fpm/config/logging.config.php new file mode 100644 index 000000000..6fd7edf8c --- /dev/null +++ b/22/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