protected static function slack(array $config = [], $title = null){
        $defaults = [
            'username' => 'Monolog',
            'useAttachment' => true,
            'iconEmoji' => null,
            'level' => Logger::DEBUG,
            'bubble' => true,
            'useShortAttachment' => false,
            'includeContextAndExtra' => false
        ];

        $c = array_merge($defaults,$config);

        return new \Monolog\Handler\SlackHandler(
            $c['token'],
            $c['channel'],
            $c['username'],
            $c['useAttachment'],
            $c['iconEmoji'],
            $c['level'],
            $c['bubble'],
            $c['useShortAttachment'],
            $c['includeContextAndExtra']);
    }