Skip to content
Permalink
Browse files

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.
  • Loading branch information...
ravage84 committed Sep 13, 2013
1 parent ba4afcc commit 0a7d5b9c3ff3bb60aa0e69b39bac64198bca9451
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Log/CakeLog.php
@@ -169,6 +169,7 @@ protected static function _init() {
* {{{
* CakeLog::config('payments', array(
* 'engine' => 'File',
* 'types' => array('info', 'error', 'warning'),
* 'scopes' => array('payment', 'order')
* ));
* }}}

0 comments on commit 0a7d5b9

Please sign in to comment.
You can’t perform that action at this time.