mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-24 09:25:21 +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
|
|
}
|