0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-11-18 02:56:42 +01:00

Create default logging config in version 24 config folder

#1754
This commit is contained in:
markus.gnigler 2022-06-26 22:28:34 +02:00
parent 305929f9af
commit 28a44bc5c1
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<?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';
}

View file

@ -0,0 +1,13 @@
<?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';
}

View file

@ -0,0 +1,13 @@
<?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';
}