mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 02:52:41 +00:00
Corrected a CakeLog example in a DocBlock about scopes and types
> Its important to remember that > when using scopes you must also define the `types` of log messages > that a logger will handle. Failing to do so will result in the logger > catching all log messages even if the scope is incorrect. According to this the previous example would fail to log correctly.
This commit is contained in:
parent
ba4afcc074
commit
0a7d5b9c3f
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ class CakeLog {
|
|||
* {{{
|
||||
* CakeLog::config('payments', array(
|
||||
* 'engine' => 'File',
|
||||
* 'types' => array('info', 'error', 'warning'),
|
||||
* 'scopes' => array('payment', 'order')
|
||||
* ));
|
||||
* }}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue