log

package
v0.0.0-...-f3d5c14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug logs to the DEBUG log. Arguments are handled in the manner of fmt.Print.

func Debugf

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

Debugf logs to the DEBUG log. Arguments are handled in the manner of fmt.Printf.

func Error

func Error(args ...interface{})

Error logs to the ERROR log. Arguments are handled in the manner of fmt.Print.

func Errorf

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

Errorf logs to the ERROR log. Arguments are handled in the manner of fmt.Printf.

func Info

func Info(args ...interface{})

Info logs to the INFO log. Arguments are handled in the manner of fmt.Print.

func Infof

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

Infof logs to the INFO log. Arguments are handled in the manner of fmt.Printf.

func SetLogger

func SetLogger(l Logger) error

SetLogger sets the global logger object

func Warning

func Warning(args ...interface{})

Warning logs to the WARN log. Arguments are handled in the manner of fmt.Print.

func Warningf

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

Warningf logs to the WARN log. Arguments are handled in the manner of fmt.Printf.

Types

type Logger

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

Logger is the logger interface

Jump to

Keyboard shortcuts

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