log

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug logs a debug message.

func Debugf

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

Debugf logs a debug message.

func Error

func Error(args ...interface{})

Error logs an error message.

func Errorf

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

Errorf logs an error message.

func Info

func Info(args ...interface{})

Info logs an information message.

func Infof

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

Infof logs an information message.

func SetLogger

func SetLogger(l Logger)

SetLogger sets a user provided logger structure to be used to log messages. If the provided logger is a nil pointer, a default no-op logger will be set.

func Warn

func Warn(args ...interface{})

Warn logs a warning message.

func Warnf

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

Warnf logs a warning message.

Types

type Logger

type Logger interface {
	Errorf(format string, args ...interface{})
	Error(args ...interface{})
	Debugf(format string, args ...interface{})
	Debug(args ...interface{})
	Warnf(format string, args ...interface{})
	Warn(args ...interface{})
	Infof(format string, args ...interface{})
	Info(args ...interface{})
}

Logger defines an interface for logging.

Jump to

Keyboard shortcuts

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