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']);
    }
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']);
    }
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' ] ) ; }
Returns a SlackHandler
@param  array  $config An array of config values to use
@param  string $title The title/subject to use
@return \Monolog\Handler\SlackHandler
Returns a SlackHandler