mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
unify other log types as well
This commit is contained in:
parent
24506dcc2c
commit
8141dd2d5d
4 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
));
|
||||
|
|
|
@ -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 @@ TEXT;
|
|||
array('types' => 'error'),
|
||||
));
|
||||
TestCakeLog::config('console', array(
|
||||
'engine' => 'ConsoleLog',
|
||||
'engine' => 'Console',
|
||||
'stream' => 'php://stderr',
|
||||
));
|
||||
TestCakeLog::replace('console', $mock);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue