mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
selective logging by scope
This commit is contained in:
parent
49bc818d36
commit
b71e814191
1 changed files with 5 additions and 1 deletions
|
@ -274,8 +274,12 @@ class CakeLog {
|
||||||
}
|
}
|
||||||
foreach (self::$_Collection->enabled() as $streamName) {
|
foreach (self::$_Collection->enabled() as $streamName) {
|
||||||
$logger = self::$_Collection->{$streamName};
|
$logger = self::$_Collection->{$streamName};
|
||||||
|
$config = $logger->config();
|
||||||
|
$types = $config['types'];
|
||||||
|
if (empty($types) || in_array($type, $types)) {
|
||||||
$logger->write($type, $message);
|
$logger->write($type, $message);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue