log

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is using lib/logger for logging but can be suppressed via Suppress method

func (*Logger) Errorf

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

Errorf logs error message.

func (*Logger) Infof

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

Infof logs info message.

func (*Logger) Panicf

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

Panicf logs panic message and panics. Panicf can't be suppressed

func (*Logger) Suppress

func (l *Logger) Suppress(v bool)

Suppress whether to ignore message logging. Once suppressed, logging continues to be ignored until logger is un-suppressed.

func (*Logger) Warnf

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

Warnf logs warning message.

Jump to

Keyboard shortcuts

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