0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-11-18 11:06:43 +01:00
nextcloud-docker/23/apache/config/logging.config.php

13 lines
354 B
PHP
Raw Normal View History

<?php
$CONFIG = array(
'loglevel' => 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';
}