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