log

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug logs debug level log information.

func Debugf

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

Debugf logs debug level log information.

func Error

func Error(args ...interface{})

Error logs error level log information.

func Errorf

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

Errorf logs error level log information.

func Fatal

func Fatal(args ...interface{})

Fatal logs fatal level log information.

func Fatalf

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

Fatalf logs fatal level log information.

func Info

func Info(args ...interface{})

Info logs info level log information.

func Infof

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

Infof logs info level log information.

func Use

func Use(logger Logger)

Use custom logger, Non-thread safe.

func Verbose

func Verbose(args ...interface{})

Verbose logs detailed log information.

func Verbosef

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

Verbosef logs detailed log information.

func Warning

func Warning(args ...interface{})

Warning logs warning level log information.

func Warningf

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

Warningf logs warning level log information.

Types

type Logger

type Logger interface {
	Verbose(depth int, args ...interface{})
	Debug(depth int, args ...interface{})
	Info(depth int, args ...interface{})
	Warning(depth int, args ...interface{})
	Error(depth int, args ...interface{})
	Fatal(depth int, args ...interface{})
}

Logger is used to record different levels of logs. Implementing a logger requires that all methods are thread-safe.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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