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