log

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Info level
	Info *log.Logger
	// Debug level
	Debug *log.Logger
	// Error level
	Error *log.Logger
)

Functions

func NewLogger

func NewLogger(debugFlag bool)

NewLogger instantiates instance var with the configurations debugFlag decides to discard or write debug logs

Types

type CLog

type CLog struct{}

CLog control-plane snapshot logger

func (CLog) Debugf

func (c CLog) Debugf(format string, args ...interface{})

Debugf Logger for controlplane, funcs used in snapshot logging

func (CLog) Errorf

func (c CLog) Errorf(format string, args ...interface{})

Errorf Logger for controlplane, funcs used in snapshot logging

func (CLog) Infof

func (c CLog) Infof(format string, args ...interface{})

Infof Logger for controlplane, funcs used in snapshot logging

func (CLog) Warnf

func (c CLog) Warnf(format string, args ...interface{})

Warnf Logger for controlplane, funcs used in snapshot logging

Jump to

Keyboard shortcuts

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