log

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debugf func(format string, args ...interface{})
	Infof  func(format string, args ...interface{})
	Printf func(format string, args ...interface{})
	Errorf func(format string, args ...interface{})
	Fatalf func(format string, args ...interface{})

	Debug func(args ...interface{})
	Info  func(args ...interface{})
	Print func(args ...interface{})
	Error func(args ...interface{})
	Fatal func(args ...interface{})

	Debugln func(args ...interface{})
	Infoln  func(args ...interface{})
	Println func(args ...interface{})
	Errorln func(args ...interface{})
	Fatalln func(args ...interface{})
)

Functions

func SetLogger

func SetLogger(logger Logger)

SetLogger rewrites the default logger

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Printf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})

	Debug(args ...interface{})
	Info(args ...interface{})
	Print(args ...interface{})
	Error(args ...interface{})
	Fatal(args ...interface{})

	Debugln(args ...interface{})
	Infoln(args ...interface{})
	Println(args ...interface{})
	Errorln(args ...interface{})
	Fatalln(args ...interface{})
}

Logger represents the log interface

Jump to

Keyboard shortcuts

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