mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 09:21:32 +00:00
.circleci
.github
DOCKER
abci
behaviour
benchmarks
blockchain
cmd
config
consensus
crypto
docs
evidence
libs
autofile
bech32
cli
clist
common
db
events
fail
flowrate
log
filter.go
filter_test.go
logger.go
nop_logger.go
testing_logger.go
tm_json_logger.go
tm_logger.go
tm_logger_test.go
tmfmt_logger.go
tmfmt_logger_test.go
tracing_logger.go
tracing_logger_test.go
pubsub
test
version
.editorconfig
.gitignore
CHANGELOG.md
README.md
circle.yml
test.sh
lite
mempool
mock
networks
node
p2p
privval
proxy
rpc
scripts
state
test
tools
types
version
.editorconfig
.gitignore
.golangci.yml
CHANGELOG.md
CHANGELOG_PENDING.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
Makefile
PHILOSOPHY.md
README.md
ROADMAP.md
SECURITY.md
UPGRADING.md
Vagrantfile
appveyor.yml
codecov.yml
docker-compose.yml
go.mod
go.sum
16 lines
442 B
Go
16 lines
442 B
Go
![]() |
package log
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
|
||
|
kitlog "github.com/go-kit/kit/log"
|
||
|
)
|
||
|
|
||
|
// NewTMJSONLogger returns a Logger that encodes keyvals to the Writer as a
|
||
|
// single JSON object. Each log event produces no more than one call to
|
||
|
// w.Write. The passed Writer must be safe for concurrent use by multiple
|
||
|
// goroutines if the returned Logger will be used concurrently.
|
||
|
func NewTMJSONLogger(w io.Writer) Logger {
|
||
|
return &tmLogger{kitlog.NewJSONLogger(w)}
|
||
|
}
|