log

package
v0.0.0-...-5669fb0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Infof = func(message string, obj ...interface{}) {

	}
	Warnf = func(message string, obj ...interface{}) {
		log.Printf("WARN [BAAAH]: "+message+"\n", obj...)
	}
	Errorf = func(message string, obj ...interface{}) {
		log.Printf("ERROR[BAAAH]: "+message+"\n", obj...)
	}
	Fatalf = func(message string, obj ...interface{}) {
		log.Fatalf("FATAL[BAAAH]: "+message+"\n", obj...)
	}
	Debugf = func(message string, obj ...interface{}) {

	}
)

Functions

func SetLogger

func SetLogger(logger Logger)

Types

type Logger

type Logger interface {
	Infof(message string, obj ...interface{})
	Warnf(message string, obj ...interface{})
	Errorf(message string, obj ...interface{})
	Fatalf(message string, obj ...interface{})
	Debugf(message string, obj ...interface{})
}

Jump to

Keyboard shortcuts

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