Skip to content

Commit

Permalink
Create default logging config in version 22 config folder
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusGnigler committed Jun 26, 2022
1 parent c416385 commit 3a11e56
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 22/apache/config/logging.config.php
Original file line number Diff line number Diff line change
@@ -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';
}
13 changes: 13 additions & 0 deletions 22/fpm-alpine/config/logging.config.php
Original file line number Diff line number Diff line change
@@ -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';
}
13 changes: 13 additions & 0 deletions 22/fpm/config/logging.config.php
Original file line number Diff line number Diff line change
@@ -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';
}

0 comments on commit 3a11e56

Please sign in to comment.