mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-03 10:32:17 +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
|
||
|
}
|