Permalink
Browse files

Update doc blocks for logging + scopes.

  • Loading branch information...
markstory committed Oct 8, 2012
1 parent 2232c7e commit a59db11e4eaa02d8e9fdbdd9aa30dbce7297b397
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Cake/Log/CakeLog.php
View
@@ -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
*
@@ -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.

0 comments on commit a59db11

Please sign in to comment.