Documentation ¶
Index ¶
- Variables
- func Crit(msg string, ctx ...interface{})
- func Debug(msg string, ctx ...interface{})
- func Error(msg string, ctx ...interface{})
- func Info(msg string, ctx ...interface{})
- func InitPbftLogger(logLevel log.Lvl, nodeName string, removeOld bool)
- func PathExists(path string) bool
- func Root() log.Logger
- func Warn(msg string, ctx ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StdoutHandler = log.StreamHandler(os.Stdout, log.LogfmtFormat()) StderrHandler = log.StreamHandler(os.Stderr, log.LogfmtFormat()) )
Predefined handlers
Functions ¶
func Debug ¶
func Debug(msg string, ctx ...interface{})
Debug is a convenient alias for Root().Debug
func Error ¶
func Error(msg string, ctx ...interface{})
Error is a convenient alias for Root().Error
func InitPbftLogger ¶
外边可能要文件输出,可能要控制台输出,可能两个都需要
func PathExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.