-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update console logging configuration (CO-1793)
- Loading branch information
Showing
1 changed file
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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'], | ||
| ], | ||
| ], |