Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvoyLogger elog.Logger = &elog.LoggerFuncs{ DebugFunc: func(s string, i ...interface{}) { msg := fmt.Sprintf(s, i...) Logger.Debug("Snapshotter", "msg", msg) }, InfoFunc: func(s string, i ...interface{}) { msg := fmt.Sprintf(s, i...) Logger.Info("Snapshotter", "msg", msg) }, WarnFunc: func(s string, i ...interface{}) { msg := fmt.Sprintf(s, i...) Logger.Warn("Snapshotter", "msg", msg) }, ErrorFunc: func(s string, i ...interface{}) { msg := fmt.Sprintf(s, i...) Logger.Error("Snapshotter", "msg", msg) }, }
EnvoyLogger implements a logger to be passed to the envoy snapshot cache
View Source
var Logger hclog.Logger
Logger - Application wide logger obj
Functions ¶
func InitLogger ¶
func InitLogger(name, logLevel string)
InitLogger - a logger for application wide use
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.