diff --git a/lib/Cake/Log/CakeLog.php b/lib/Cake/Log/CakeLog.php index 4376b16d6..428323927 100644 --- a/lib/Cake/Log/CakeLog.php +++ b/lib/Cake/Log/CakeLog.php @@ -274,7 +274,11 @@ class CakeLog { } foreach (self::$_Collection->enabled() as $streamName) { $logger = self::$_Collection->{$streamName}; - $logger->write($type, $message); + $config = $logger->config(); + $types = $config['types']; + if (empty($types) || in_array($type, $types)) { + $logger->write($type, $message); + } } return true; }