Documentation ¶
Overview ¶
Package logging defines the Logger interface which is used by the module system. It also includes functions for setting the global log level and a per-package log level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetPackageLogLevel ¶
func SetPackageLogLevel(packageName, levelStr string)
SetPackageLogLevel sets a log level for a package, overriding the global level.
Types ¶
type Logger ¶
type Logger interface { DPanic(args ...interface{}) DPanicf(template string, args ...interface{}) Debug(args ...interface{}) Debugf(template string, args ...interface{}) Error(args ...interface{}) Errorf(template string, args ...interface{}) Fatal(args ...interface{}) Fatalf(template string, args ...interface{}) Info(args ...interface{}) Infof(template string, args ...interface{}) Panic(args ...interface{}) Panicf(template string, args ...interface{}) Warn(args ...interface{}) Warnf(template string, args ...interface{}) }
Logger is the logging interface used by consensus. It is based on zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.