mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
bug fixes in binary
This commit is contained in:
+2
-18
@@ -6,22 +6,6 @@ import (
|
||||
|
||||
var log seelog.LoggerInterface
|
||||
|
||||
func init() {
|
||||
// TODO: replace with configuration file in the ~/.tendermint directory.
|
||||
config := `
|
||||
<seelog type="asyncloop" minlevel="debug">
|
||||
<outputs formatid="colored">
|
||||
<console/>
|
||||
</outputs>
|
||||
<formats>
|
||||
<format id="main" format="%Date/%Time [%LEV] %Msg%n"/>
|
||||
<format id="colored" format="%EscM(46)%Level%EscM(49) %EscM(36)%File%EscM(39) %Msg%n%EscM(0)"/>
|
||||
</formats>
|
||||
</seelog>`
|
||||
|
||||
var err error
|
||||
log, err = seelog.LoggerFromConfigAsBytes([]byte(config))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
func SetLogger(l seelog.LoggerInterface) {
|
||||
log = l
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user