mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 14:21:14 +00:00
* build(deps): Bump github.com/go-kit/kit from 0.10.0 to 0.12.0 Bumps [github.com/go-kit/kit](https://github.com/go-kit/kit) from 0.10.0 to 0.12.0. - [Release notes](https://github.com/go-kit/kit/releases) - [Commits](https://github.com/go-kit/kit/compare/v0.10.0...v0.12.0) --- updated-dependencies: - dependency-name: github.com/go-kit/kit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * add nolint * fix lint * fix build Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: tycho garen <garen@tychoish.com>
31 lines
771 B
Go
31 lines
771 B
Go
package log
|
|
|
|
import (
|
|
"io"
|
|
|
|
kitlog "github.com/go-kit/log"
|
|
)
|
|
|
|
// Logger is what any Tendermint library should take.
|
|
type Logger interface {
|
|
Debug(msg string, keyvals ...interface{})
|
|
Info(msg string, keyvals ...interface{})
|
|
Error(msg string, keyvals ...interface{})
|
|
|
|
With(keyvals ...interface{}) Logger
|
|
}
|
|
|
|
// NewSyncWriter returns a new writer that is safe for concurrent use by
|
|
// multiple goroutines. Writes to the returned writer are passed on to w. If
|
|
// another write is already in progress, the calling goroutine blocks until
|
|
// the writer is available.
|
|
//
|
|
// If w implements the following interface, so does the returned writer.
|
|
//
|
|
// interface {
|
|
// Fd() uintptr
|
|
// }
|
|
func NewSyncWriter(w io.Writer) io.Writer {
|
|
return kitlog.NewSyncWriter(w)
|
|
}
|