Instead of directly importing logrus and use it as the logger, this PR allows package user to drop a logger via shoveler.SetLogger which accepts a logrus.FieldLogger and sets a global variable log and shoveler uses that as the internal logger.
It won't break existing CLI as a default logger was added in-place
However, when doing E2E regression testing, I figured that the go version ingo mod seems to be outdated and go mod tidy gives error suggesting a higher version of go required. Therefore, this PR also updates Go version in go.mod and Dockerfile to v1.20
When running goreleaser for testing, it produces binary files at dist folder, so this PR added .gitignore to exclude dist folder.
Instead of directly importing logrus and use it as the logger, this PR allows package user to drop a logger via
shoveler.SetLogger
which accepts alogrus.FieldLogger
and sets a global variablelog
and shoveler uses that as the internal logger.It won't break existing CLI as a default logger was added in-place
However, when doing E2E regression testing, I figured that the go version in
go mod
seems to be outdated andgo mod tidy
gives error suggesting a higher version of go required. Therefore, this PR also updates Go version ingo.mod
andDockerfile
tov1.20
When running
goreleaser
for testing, it produces binary files atdist
folder, so this PR added.gitignore
to excludedist
folder.