for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rap2hpoutre\LaravelLogViewer;
/**
* Class Level
* @package Rap2hpoutre\LaravelLogViewer
*/
class Level
{
* @var array
private $levels_classes = [
'debug' => 'info',
'info' => 'info',
'notice' => 'info',
'warning' => 'warning',
'error' => 'danger',
'critical' => 'danger',
'alert' => 'danger',
'emergency' => 'danger',
'processed' => 'info',
'failed' => 'warning',
];
private $levels_imgs = [
'debug' => 'info-circle',
'info' => 'info-circle',
'notice' => 'info-circle',
'warning' => 'exclamation-triangle',
'error' => 'exclamation-triangle',
'critical' => 'exclamation-triangle',
'alert' => 'exclamation-triangle',
'emergency' => 'exclamation-triangle',
'processed' => 'info-circle',
'failed' => 'exclamation-triangle'
* @return array
public function all()
return array_keys($this->levels_imgs);
}
* @param $level
* @return string
public function img($level)
return $this->levels_imgs[$level];
public function cssClass($level)
return $this->levels_classes[$level];