log

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL