mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 17:42:41 +00:00
Update doc blocks for logging + scopes.
This commit is contained in:
parent
2232c7e15d
commit
a59db11e4e
1 changed files with 5 additions and 1 deletions
|
@ -67,6 +67,7 @@ App::uses('LogEngineCollection', 'Log');
|
|||
* 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 @@ class CakeLog {
|
|||
*
|
||||
* 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue