Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewLogger func(opts *hclog.LoggerOptions) hclog.Logger = hclog.New
NewLogger
PS: 返回值可以赋值给 raft.Config.Logger
@param opts 可以为nil(将采用默认值: os.Stderr、Info)
Functions ¶
func StringToLevel ¶
func StringToLevel(levelStr string) hclog.Level
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.