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 ...any)
DPanicf(template string, args ...any)
Debug(args ...any)
Debugf(template string, args ...any)
Error(args ...any)
Errorf(template string, args ...any)
Fatal(args ...any)
Fatalf(template string, args ...any)
Info(args ...any)
Infof(template string, args ...any)
Panic(args ...any)
Panicf(template string, args ...any)
Warn(args ...any)
Warnf(template string, args ...any)
}
Logger is the logging interface used by consensus. It is based on zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.