public static function create($name, array $config = [], $title = null){
        $handler = call_user_func([MonologHandlerFactory::class,$name], $config, $title);
        
        // Keep newline characters
        $format = ['fleephook', 'hipchat', 'mail', 'mailgun', 'pushover', 'raven', 'slack'];
        
        if(in_array($name, $format)) {
            $handler->setFormatter(new LineFormatter(null, null, true));
        }

        if ($handler instanceof \Monolog\Handler\NativeMailerHandler) {
            $handler->setContentType('text/html');
        }

        return $handler;
    }
public static function create($name, array $config = [], $title = null){
        $handler = call_user_func([MonologHandlerFactory::class,$name], $config, $title);
        
        // Keep newline characters
        $format = ['fleephook', 'hipchat', 'mail', 'mailgun', 'pushover', 'raven', 'slack'];
        
        if(in_array($name, $format)) {
            $handler->setFormatter(new LineFormatter(null, null, true));
        }

        if ($handler instanceof \Monolog\Handler\NativeMailerHandler) {
            $handler->setContentType('text/html');
        }

        return $handler;
    }
public static function create ( $ name , array $ config = [ ] , $ title = null ) { $ handler = call_user_func ( [ MonologHandlerFactory :: class , $ name ] , $ config , $ title ) ; // Keep newline characters $ format = [ 'fleephook' , 'hipchat' , 'mail' , 'mailgun' , 'pushover' , 'raven' , 'slack' ] ; if ( in_array ( $ name , $ format ) ) { $ handler -> setFormatter ( new LineFormatter ( null , null , true ) ) ; } if ( $ handler instanceof \ Monolog \ Handler \ NativeMailerHandler ) { $ handler -> setContentType ( 'text/html' ) ; } return $ handler ; }
Returns an instance of \Monolog\Handler\HandlerInterface
@param  string $name   Then name of the handler you want to create
@param  array  $config An array of config values to use
@param string $title
@return \Monolog\Handler\HandlerInterface
Returns an instance of \ Monolog \ Handler \ HandlerInterface