mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-18 15:41:20 +00:00
filter
This commit is contained in:
15
log/tm_json_logger.go
Normal file
15
log/tm_json_logger.go
Normal file
@ -0,0 +1,15 @@
|
||||
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)}
|
||||
}
|
Reference in New Issue
Block a user