c762d81f75
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/v1.3.0...v1.3.1) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.github | ||
.synced | ||
go.mod | ||
go.sum | ||
LICENSE | ||
logrus_test.go | ||
logrus.go | ||
options.go | ||
README.md |
logrus
logrus logger implementation for go-micro meta logger.
Usage
import (
"os"
"github.com/sirupsen/logrus"
"github.com/micro/go-micro/v2/logger"
)
func ExampleWithOutput() {
logger.DefaultLogger = NewLogger(logger.WithOutput(os.Stdout))
logger.Infof(logger.InfoLevel, "testing: %s", "Infof")
}
func ExampleWithLogger() {
l:= logrus.New() // *logrus.Logger
logger.DefaultLogger = NewLogger(WithLogger(l))
logger.Infof(logger.InfoLevel, "testing: %s", "Infof")
}