cakephp/debug_kit — pull request #85 by dereuromark (2013-08-30 00:44:35+00:00)
Title: Notice if a stream is not configured instead of silently swallowing it.

Currently, the enabled debug kit would inject its own logging engine which swallows non-configured streams.
This happens silently, so you just wonder where the logging actually went.

Example:

// this should just log to File in /logs/facebook_test.log
CakeLog::write('facebook_test', 'access login');

But it doesn't, since the Debug logger already logs and turns $logged to true.
Thus the following vital part is not executed anymore:

if (!$logged) {
self::_autoConfig();
self::stream('default')->write($type, $message);
}

Or is there a better way? Where you don't have to "configure" all your log streams manually?