code: func NewRegexLineParser(regexStrs []string) (*RegexLineParser, error) {
  	lineRegexes, err := ParseLineRegexes(regexStrs)
  	if err != nil {
  		return nil, err
  	}
  	logrus.WithFields(logrus.Fields{
  		"lineRegexes": lineRegexes,
  	}).Debug("Compiled line regexes")
  	return &RegexLineParser{lineRegexes}, nil
  }
docs: // NewRegexLineParser factory