mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-22 02:41:19 +00:00
16 lines
246 B
Go
16 lines
246 B
Go
|
package alert
|
||
|
|
||
|
import (
|
||
|
"github.com/op/go-logging"
|
||
|
)
|
||
|
|
||
|
var log = logging.MustGetLogger("alert")
|
||
|
|
||
|
func init() {
|
||
|
logging.SetFormatter(logging.MustStringFormatter("[%{level:.1s}] %{message}"))
|
||
|
}
|
||
|
|
||
|
func SetAlertLogger(l *logging.Logger) {
|
||
|
log = l
|
||
|
}
|