mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 14:21:14 +00:00
16 lines
258 B
Go
16 lines
258 B
Go
package consensus
|
|
|
|
import (
|
|
"github.com/op/go-logging"
|
|
)
|
|
|
|
var log = logging.MustGetLogger("consensus")
|
|
|
|
func init() {
|
|
logging.SetFormatter(logging.MustStringFormatter("[%{level:.1s}] %{message}"))
|
|
}
|
|
|
|
func SetConsensusLogger(l *logging.Logger) {
|
|
log = l
|
|
}
|