Go to file
dependabot[bot] e209c087b3
Bump go.unistack.org/micro/v3 from 3.8.13 to 3.8.14
Bumps [go.unistack.org/micro/v3](https://github.com/unistack-org/micro) from 3.8.13 to 3.8.14.
- [Release notes](https://github.com/unistack-org/micro/releases)
- [Commits](https://github.com/unistack-org/micro/compare/v3.8.13...v3.8.14)

---
updated-dependencies:
- dependency-name: go.unistack.org/micro/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-11 04:21:31 +00:00
.github update import paths 2021-10-28 00:32:05 +03:00
.synced update micro to v3.1.3 2021-01-19 23:24:13 +03:00
go.mod Bump go.unistack.org/micro/v3 from 3.8.13 to 3.8.14 2022-01-11 04:21:31 +00:00
go.sum Bump go.unistack.org/micro/v3 from 3.8.13 to 3.8.14 2022-01-11 04:21:31 +00:00
LICENSE add LICENSE 2021-01-10 15:39:34 +03:00
logrus_test.go test for change output 2021-11-10 12:32:19 +03:00
logrus.go update import paths 2021-10-28 00:32:05 +03:00
options.go update import paths 2021-10-28 00:32:05 +03:00
README.md use own fork 2021-01-10 15:21:29 +03:00

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")
}