mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 19:33:36 +00:00
19 lines
321 B
Go
19 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
|
|
}
|