tendermint/alert/log.go

16 lines
246 B
Go
Raw Normal View History

2014-11-27 04:04:07 -08:00
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
}