mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
20 lines
321 B
Go
20 lines
321 B
Go
|
package consensus
|
||
|
|
||
|
import (
|
||
|
"go.uber.org/zap"
|
||
|
)
|
||
|
|
||
|
func getLogger() (*zap.Logger, error) {
|
||
|
cc := zap.NewDevelopmentConfig()
|
||
|
cc.DisableCaller = true
|
||
|
cc.DisableStacktrace = true
|
||
|
cc.Encoding = "console"
|
||
|
|
||
|
log, err := cc.Build()
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
return log.With(zap.String("module", "dbft")), nil
|
||
|
}
|