unify other log types as well

This commit is contained in:
euromark 2013-06-21 16:43:01 +02:00
parent 24506dcc2c
commit 8141dd2d5d
4 changed files with 7 additions and 7 deletions

View file

@ -878,12 +878,12 @@ class Shell extends Object {
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,
));

View file

@ -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'

View file

@ -855,7 +855,7 @@ TEXT;
array('types' => 'error'),
));
TestCakeLog::config('console', array(
'engine' => 'ConsoleLog',
'engine' => 'Console',
'stream' => 'php://stderr',
));
TestCakeLog::replace('console', $mock);

View file

@ -78,7 +78,7 @@ class ConsoleLogTest extends CakeTestCase {
*/
public function testConsoleOutputWrites() {
TestCakeLog::config('test_console_log', array(
'engine' => 'TestConsoleLog',
'engine' => 'TestConsole',
));
$mock = $this->getMock('TestConsoleLog', array('write'), array(
@ -97,7 +97,7 @@ class ConsoleLogTest extends CakeTestCase {
*/
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 @@ class ConsoleLogTest extends CakeTestCase {
*/
public function testDefaultOutputAs() {
TestCakeLog::config('test_console_log', array(
'engine' => 'TestConsoleLog',
'engine' => 'TestConsole',
));
if (DS === '\\' && !(bool)env('ANSICON')) {
$expected = ConsoleOutput::PLAIN;