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:
Marc Würth 2013-09-13 03:07:46 +02:00
parent ba4afcc074
commit 0a7d5b9c3f

View file

@ -169,6 +169,7 @@ class CakeLog {
* {{{
* CakeLog::config('payments', array(
* 'engine' => 'File',
* 'types' => array('info', 'error', 'warning'),
* 'scopes' => array('payment', 'order')
* ));
* }}}