Go to file
dependabot[bot] cb0c9c74eb
Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (#68)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-25 22:48:39 +03:00
.github Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (#68) 2022-06-25 22:48:39 +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.9.7 to 3.9.8 2022-05-03 04:18:56 +00:00
go.sum Bump go.unistack.org/micro/v3 from 3.9.7 to 3.9.8 2022-05-03 04:18:56 +00:00
LICENSE add LICENSE 2021-01-10 15:39:34 +03:00
logrus_test.go logger: add logger Fields test 2022-01-20 00:33:48 +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")
}