Documentation ¶
Overview ¶
Package logging wraps the zap logging package to provide easier access and initialization of the logger
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func InitLogger(logLevelString string, clusterID string) *zap.SugaredLogger
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var RawLogger = InitLogger("info", "")
RawLogger is the raw global logger object used for calls wrapped by the logging package
Functions ¶
func Debugf ¶
func Debugf(template string, args ...interface{})
Debugf wraps zap's SugaredLogger.Debugf()
func Errorf ¶
func Errorf(template string, args ...interface{})
Errorf wraps zap's SugaredLogger.Errorf()
func Fatalf ¶
func Fatalf(template string, args ...interface{})
Fatalf wraps zap's SugaredLogger.Fatalf()
func Infof ¶
func Infof(template string, args ...interface{})
Infof wraps zap's SugaredLogger.Infof()
func InitLogger ¶
func InitLogger(logLevelString string, clusterID string) *zap.SugaredLogger
InitLogger initializes a cluster-id specific child logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.