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

13 lines
No EOL
354 B
PHP

<?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';
}