mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-02 10:02:14 +00:00
17 lines
387 B
Go
17 lines
387 B
Go
package main
|
|
|
|
import (
|
|
"github.com/op/go-logging"
|
|
"os"
|
|
)
|
|
|
|
var log = logging.MustGetLogger("main")
|
|
|
|
func init() {
|
|
// Customize the output format
|
|
logging.SetFormatter(logging.MustStringFormatter("[%{level:.4s}] %{time:2006-01-02T15:04:05} %{shortfile:-20s} %{message}"))
|
|
logBackend := logging.NewLogBackend(os.Stderr, "", 0)
|
|
logBackend.Color = true
|
|
logging.SetBackend(logBackend)
|
|
}
|