code: func New(info logger.Info) (logger.Logger, error) {
  	logrus.WithField("container", info.ContainerID).
  		WithField("token", info.Config[token]).
  		WithField("line-only", info.Config[lineonly]).
  		Debug("logging driver logentries configured")
  
  	log, err := le_go.Connect(info.Config[token])
  	if err != nil {
  		return nil, errors.Wrap(err, "error connecting to logentries")
  	}
  	var lineOnly bool
  	if info.Config[lineonly] != "" {
  		if lineOnly, err = strconv.ParseBool(info.Config[lineonly]); err != nil {
  			return nil, errors.Wrap(err, "error parsing lineonly option")
  		}
  	}
  	return &logentries{
  		containerID:   info.ContainerID,
  		containerName: info.ContainerName,
  		writer:        log,
  		lineOnly:      lineOnly,
  	}, nil
  }
docs: // New creates a logentries logger using the configuration passed in on
  // the context. The supported context configuration variable is
  // logentries-token.