log

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 53

Documentation

Overview

Package log defines log levels for use with klog.V(...).Info

Index

Constants

View Source
const (
	WarningKey = "WARNING"
	FatalKey   = "FATAL"
)
View Source
const (
	// INFO : This level is for anything which does not happen very often, and while
	//        not being an error, is important information and helpful to be in the
	//        logs, eg:
	//          * startup information
	//          * HA failovers
	//          * re-connections/disconnections
	//          * ...
	//        This level is not specifically defined as you would use the
	//        klog.Info helpers
	//
	// DEBUG : used to provide logs for often occurring events that could be helpful
	//        for debugging errors.
	DEBUG = 2
	// LIBDEBUG:  like DEBUG but for submariner internal libraries like admiral.
	LIBDEBUG = 3
	// TRACE : used for logging that occurs often or may dump a lot of information
	//         which generally would be less useful for debugging but can be useful
	//         in some cases, for example tracing function entry/exit, parameters,
	//         structures, etc..
	TRACE = 4
	// LIBTRACE:  like TRACE but for submariner internal libraries like admiral.
	LIBTRACE = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v0.13.0

type Logger struct {
	logr.Logger
}

func (Logger) Error added in v0.13.0

func (l Logger) Error(err error, msg string, keysAndValues ...interface{})

func (Logger) Errorf added in v0.13.0

func (l Logger) Errorf(err error, format string, args ...interface{})

func (Logger) Fatal added in v0.13.0

func (l Logger) Fatal(msg string, keysAndValues ...interface{})

func (Logger) FatalOnError added in v0.13.0

func (l Logger) FatalOnError(err error, msg string, keysAndValues ...interface{})

func (Logger) Fatalf added in v0.13.0

func (l Logger) Fatalf(format string, args ...interface{})

func (Logger) FatalfOnError added in v0.13.0

func (l Logger) FatalfOnError(err error, format string, args ...interface{})

func (Logger) Info added in v0.13.0

func (l Logger) Info(msg string, keysAndValues ...interface{})

func (Logger) Infof added in v0.13.0

func (l Logger) Infof(format string, args ...interface{})

func (Logger) V added in v0.13.0

func (l Logger) V(level int) Logger

func (Logger) Warning added in v0.13.0

func (l Logger) Warning(msg string, keysAndValues ...interface{})

func (Logger) Warningf added in v0.13.0

func (l Logger) Warningf(format string, args ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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