Documentation
¶
Overview ¶
Package logger is the CNI logger interface, using logrus
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogReportCaller ¶
func GetLogReportCaller() bool
Types ¶
type Configuration ¶
Configuration stores the config of the logger.
func LoadLogConfig ¶
func LoadLogConfig() *Configuration
LoadLogConfig returns the log configuration.
type Fields ¶
type Fields map[string]interface{}
Fields Used when we want to call WithFields for structured logging.
type Hook ¶
type Logger ¶
type Logger interface {
Debugf(format string, args ...interface{})
Debug(args ...interface{})
DebugWithFields(fields Fields, args ...interface{})
Infof(format string, args ...interface{})
Info(args ...interface{})
InfoWithFields(fields Fields, args ...interface{})
Warnf(format string, args ...interface{})
Warn(args ...interface{})
WarnWithFields(fields Fields, args ...interface{})
Errorf(format string, args ...interface{})
Error(args ...interface{})
ErrorWithFields(fields Fields, args ...interface{})
Fatalf(format string, args ...interface{})
Panicf(format string, args ...interface{})
WithFields(fields Fields) Logger
SetLogLevel(level string)
}
Click to show internal directories.
Click to hide internal directories.