Log: Fix StdoutWriter not using our "new" Logger's interface
This commit is contained in:
parent
eab5422df2
commit
a2a97537ce
|
@ -3,7 +3,7 @@
|
|||
namespace Icinga\Application\Logger\Writer;
|
||||
|
||||
use Icinga\Cli\Screen;
|
||||
use Icinga\Application\Logger\Logger;
|
||||
use Icinga\Application\Logger;
|
||||
use Icinga\Application\Logger\LogWriter;
|
||||
use Zend_Config;
|
||||
|
||||
|
@ -32,16 +32,16 @@ class StdoutWriter extends LogWriter
|
|||
{
|
||||
$color = 'black';
|
||||
switch ($severity) {
|
||||
case Logger::$ERROR:
|
||||
case Logger::ERROR:
|
||||
$color = 'red';
|
||||
break;
|
||||
case Logger::$WARNING:
|
||||
case Logger::WARNING:
|
||||
$color = 'orange';
|
||||
break;
|
||||
case Logger::$INFO:
|
||||
case Logger::INFO:
|
||||
$color = 'green';
|
||||
break;
|
||||
case Logger::$DEBUG:
|
||||
case Logger::DEBUG:
|
||||
$color = 'blue';
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue