public static function setColors(array $colors = array())
    {
        if (!empty($colors)) {
            static::$colors = $colors;
            return;
        }
        static::$colors = array(
            \Monolog\Logger::DEBUG     => 'purple',
            \Monolog\Logger::INFO      => 'cyan',
            \Monolog\Logger::NOTICE    => 'green',
            \Monolog\Logger::WARNING   => 'yellow',
            \Monolog\Logger::ERROR     => 'red',
            \Monolog\Logger::CRITICAL  => 'red',
            \Monolog\Logger::ALERT     => 'red',
            \Monolog\Logger::EMERGENCY => 'red',
        );
    }
public static function setColors(array $colors = array())
    {
        if (!empty($colors)) {
            static::$colors = $colors;
            return;
        }
        static::$colors = array(
            \Monolog\Logger::DEBUG     => 'purple',
            \Monolog\Logger::INFO      => 'cyan',
            \Monolog\Logger::NOTICE    => 'green',
            \Monolog\Logger::WARNING   => 'yellow',
            \Monolog\Logger::ERROR     => 'red',
            \Monolog\Logger::CRITICAL  => 'red',
            \Monolog\Logger::ALERT     => 'red',
            \Monolog\Logger::EMERGENCY => 'red',
        );
    }
public static function setColors ( array $ colors = array ( ) ) { if ( ! empty ( $ colors ) ) { static :: $ colors = $ colors ; return ; } static :: $ colors = array ( \ Monolog \ Logger :: DEBUG => 'purple' , \ Monolog \ Logger :: INFO => 'cyan' , \ Monolog \ Logger :: NOTICE => 'green' , \ Monolog \ Logger :: WARNING => 'yellow' , \ Monolog \ Logger :: ERROR => 'red' , \ Monolog \ Logger :: CRITICAL => 'red' , \ Monolog \ Logger :: ALERT => 'red' , \ Monolog \ Logger :: EMERGENCY => 'red' , ) ; }
Set log message colors configuration

If no colors given, we assume a sensible default

@param array $colors Associative array of log levels and colors
@return void
Set log message colors configuration