log

package
v0.15.25 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 4

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

type Logger struct {
	logr.Logger
}

func (Logger) Error

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

func (Logger) Errorf

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

func (Logger) Fatal

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

func (Logger) FatalOnError

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

func (Logger) Fatalf

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

func (Logger) FatalfOnError

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

func (Logger) Info

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

func (Logger) Infof

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

func (Logger) V

func (l Logger) V(level int) Logger

func (Logger) Warning

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

func (Logger) Warningf

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