Log: Fix StdoutWriter not using our "new" Logger's interface

This commit is contained in:
Eric Lippmann 2014-12-03 09:38:33 +01:00
parent eab5422df2
commit a2a97537ce
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}