package
0.2.1
Repository: https://github.com/eopenio/util.git
Documentation: pkg.go.dev

# Functions

BgLogger is alias of `logutil.BgLogger()`.
Hex defines a fmt.Stringer for proto.Message.
InitLogger initializes PD's logger.
InitZapLogger initializes a zap logger with cfg.
NewFileLogConfig creates a FileLogConfig.
NewLogConfig creates a LogConfig.
SetLevel sets the zap logger's level.

# Constants

DefaultLogFormat is the default format of the log.
MB.

# Variables

EmptyFileLogConfig is an empty FileLogConfig.

# Structs

FileLogConfig serializes file log related config in toml/json.
LogConfig serializes log related config in toml/json.