func CreateLogger()

in internal/log/log.go [62:75]


func CreateLogger(c *zap.Config, pidPath string, removePIDfunc removePIDfunc) (*Logger, error) {

	l, err := c.Build()
	if err != nil {
		return nil, errors.Wrap(err, "failed to create logger")
	}
	pl := Logger{
		Logger:    l,
		PIDPath:   pidPath,
		RemovePID: removePIDfunc,
	}

	return &pl, nil
}