public static function setFormatter($formatter = null)
    {
        if (!empty($formatter)) {
            static::$formatter = $formatter;
            return;
        }
        static::$formatter = new \Monolog\Formatter\ColorLineFormatter("[c=%color%]%message%[/c]\n", null, true, true);
    }
public static function setFormatter($formatter = null)
    {
        if (!empty($formatter)) {
            static::$formatter = $formatter;
            return;
        }
        static::$formatter = new \Monolog\Formatter\ColorLineFormatter("[c=%color%]%message%[/c]\n", null, true, true);
    }
public static function setFormatter ( $ formatter = null ) { if ( ! empty ( $ formatter ) ) { static :: $ formatter = $ formatter ; return ; } static :: $ formatter = new \ Monolog \ Formatter \ ColorLineFormatter ( "[c=%color%]%message%[/c]\n" , null , true , true ) ; }
Set log formatter

If formatter is not given, we assume a sensible default

@param object $formatter Formatter object to use
@return void
Set log formatter