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 22 config folder

#1754
This commit is contained in:
markus.gnigler 2022-06-26 22:27:16 +02:00
parent c416385b7c
commit 3a11e560d0
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';
}