Permalink
Browse files

unify other log types as well

  • Loading branch information...
1 parent 24506dc commit 8141dd2d5d2fe3792c2ca3df258d1a7a0da2465e @dereuromark dereuromark committed Jun 21, 2013
@@ -878,12 +878,12 @@ protected function _useLogger($enable = true) {
return;
}
CakeLog::config('stdout', array(
- 'engine' => 'ConsoleLog',
+ 'engine' => 'Console',
'types' => array('notice', 'info'),
'stream' => $this->stdout,
));
CakeLog::config('stderr', array(
- 'engine' => 'ConsoleLog',
+ 'engine' => 'Console',
'types' => array('emergency', 'alert', 'critical', 'error', 'warning', 'debug'),
'stream' => $this->stderr,
));
@@ -45,7 +45,7 @@ class SyslogLog extends BaseLog {
*
* {{{
* CakeLog::config('error', array(
- * 'engine' => 'SyslogLog',
+ * 'engine' => 'Syslog',
* 'types' => array('emergency', 'alert', 'critical', 'error'),
* 'format' => "%s: My-App - %s",
* 'prefix' => 'Web Server 01'
@@ -855,7 +855,7 @@ public function testFileAndConsoleLogging() {
array('types' => 'error'),
));
TestCakeLog::config('console', array(
- 'engine' => 'ConsoleLog',
+ 'engine' => 'Console',
'stream' => 'php://stderr',
));
TestCakeLog::replace('console', $mock);
@@ -78,7 +78,7 @@ public function tearDown() {
*/
public function testConsoleOutputWrites() {
TestCakeLog::config('test_console_log', array(
- 'engine' => 'TestConsoleLog',
+ 'engine' => 'TestConsole',
));
$mock = $this->getMock('TestConsoleLog', array('write'), array(
@@ -97,7 +97,7 @@ public function testConsoleOutputWrites() {
*/
public function testCombinedLogWriting() {
TestCakeLog::config('test_console_log', array(
- 'engine' => 'TestConsoleLog',
+ 'engine' => 'TestConsole',
));
$mock = $this->getMock('TestConsoleLog', array('write'), array(
array('types' => 'error'),
@@ -133,7 +133,7 @@ public function testCombinedLogWriting() {
*/
public function testDefaultOutputAs() {
TestCakeLog::config('test_console_log', array(
- 'engine' => 'TestConsoleLog',
+ 'engine' => 'TestConsole',
));
if (DS === '\\' && !(bool)env('ANSICON')) {
$expected = ConsoleOutput::PLAIN;

0 comments on commit 8141dd2

Please sign in to comment.