Skip to content

Commit

Permalink
Update doc blocks for logging + scopes.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 8, 2012
1 parent 2232c7e commit a59db11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Cake/Log/CakeLog.php
Expand Up @@ -67,6 +67,7 @@
* application. By using scopes you can control logging for each part
* of your application and still keep standard log levels.
*
*
* See CakeLog::config() and CakeLog::write() for more information
* on scopes
*
Expand Down Expand Up @@ -173,7 +174,10 @@ protected static function _init() {
*
* The above logger will only capture log entries made in the
* `payment` and `order` scopes. All other scopes including the
* undefined scope will be ignored.
* undefined scope will be ignored. 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.
*
* @param string $key The keyname for this logger, used to remove the
* logger later.
Expand Down

0 comments on commit a59db11

Please sign in to comment.