code: func NewTextWriter(logger logrus.FieldLogger, contentType string) *TextWriter {
  	if contentType == "" {
  		contentType = "plain"
  	}
  
  	writer := &TextWriter{
  		logger:      logger,
  		contentType: "text/" + contentType,
  	}
  
  	writer.Reporter = DefaultErrorReporter
  	return writer
  }
docs: // NewPlainWriter returns a json