protected function getAlertColor($level)
    {
        switch (true) {
            case $level >= Logger::ERROR:
                return 'red';
            case $level >= Logger::WARNING:
                return 'yellow';
            case $level >= Logger::INFO:
                return 'green';
            case $level == Logger::DEBUG:
                return 'gray';
            default:
                return 'yellow';
        }
    }
protected function getAlertColor($level)
    {
        switch (true) {
            case $level >= Logger::ERROR:
                return 'red';
            case $level >= Logger::WARNING:
                return 'yellow';
            case $level >= Logger::INFO:
                return 'green';
            case $level == Logger::DEBUG:
                return 'gray';
            default:
                return 'yellow';
        }
    }
protected function getAlertColor ( $ level ) { switch ( true ) { case $ level >= Logger :: ERROR : return 'red' ; case $ level >= Logger :: WARNING : return 'yellow' ; case $ level >= Logger :: INFO : return 'green' ; case $ level == Logger :: DEBUG : return 'gray' ; default : return 'yellow' ; } }
Assigns a color to each level of log records.

@param  int    $level
@return string
Assigns a color to each level of log records .