Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update console logging configuration (CO-1793)
skoranda committed Oct 15, 2021
1 parent 8d449cf commit a8ccdc9
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions comanage-match-base/comanage_match_console_logging.patch
@@ -1,36 +1,42 @@
--- app.php.original 2019-05-18 06:27:49.677219272 -0500
+++ app.php 2019-05-18 06:36:53.873233082 -0500
@@ -318,27 +318,21 @@
--- app.php.original 2021-10-15 15:34:52.145539673 +0000
+++ app.php 2021-10-15 15:33:22.991530882 +0000
@@ -29,7 +29,7 @@
use Cake\Database\Connection;
use Cake\Database\Driver\Mysql;
use Cake\Error\ExceptionRenderer;
-use Cake\Log\Engine\FileLog;
+use Cake\Log\Engine\ConsoleLog;
use Cake\Mailer\Transport\MailTransport;

return [
@@ -367,27 +367,18 @@
*/
'Log' => [
'debug' => [
- 'className' => 'Cake\Log\Engine\FileLog',
- 'className' => FileLog::class,
- 'path' => LOGS,
- 'file' => 'debug',
- 'url' => env('LOG_DEBUG_URL', null),
+ 'className' => 'Cake\Log\Engine\ConsoleLog',
+ 'stream' => '/dev/stdout',
+ 'className' => ConsoleLog::class,
'scopes' => false,
'levels' => ['notice', 'info', 'debug'],
],
'error' => [
- 'className' => 'Cake\Log\Engine\FileLog',
- 'className' => FileLog::class,
- 'path' => LOGS,
- 'file' => 'error',
- 'url' => env('LOG_ERROR_URL', null),
+ 'className' => 'Cake\Log\Engine\ConsoleLog',
+ 'stream' => '/dev/stdout',
+ 'className' => ConsoleLog::class,
'scopes' => false,
'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],
],
// To enable this dedicated query log, you need set your datasource's log flag to true
'queries' => [
- 'className' => 'Cake\Log\Engine\FileLog',
- 'className' => FileLog::class,
- 'path' => LOGS,
- 'file' => 'queries',
- 'url' => env('LOG_QUERIES_URL', null),
+ 'className' => 'Cake\Log\Engine\ConsoleLog',
+ 'stream' => '/dev/stdout',
+ 'className' => ConsoleLog::class,
'scopes' => ['queriesLog'],
],
],

0 comments on commit a8ccdc9

Please sign in to comment.