More code cleanup

This commit is contained in:
James Cole
2023-12-20 19:39:53 +01:00
parent 64ec0cf62e
commit 680012056b
29 changed files with 259 additions and 349 deletions

View File

@@ -28,7 +28,6 @@ use Monolog\Handler\SyslogUdpHandler;
$defaultChannels = ['daily', 'stdout'];
$auditChannels = ['audit_daily', 'audit_stdout'];
// validChannels is missing 'stack' because we already check for that one.
$validChannels = ['single', 'papertrail', 'stdout', 'daily', 'syslog', 'errorlog'];
$validAuditChannels = ['audit_papertrail', 'audit_stdout', 'audit_stdout', 'audit_daily', 'audit_syslog', 'audit_errorlog'];
@@ -89,9 +88,7 @@ return [
'driver' => 'stack',
'channels' => $auditChannels,
],
/*
* There are 6 valid destinations for the normal logs, listed below:
*/
// There are 6 valid destinations for the normal logs, listed below:
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
@@ -113,7 +110,7 @@ return [
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/ff3-' . PHP_SAPI . '.log'),
'path' => storage_path('logs/ff3-'.PHP_SAPI.'.log'),
'level' => envNonEmpty('APP_LOG_LEVEL', 'info'),
'days' => 7,
],
@@ -163,8 +160,5 @@ return [
'tap' => [AuditLogger::class],
'level' => envNonEmpty('AUDIT_LOG_LEVEL', 'info'),
],
],
];