log

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func Errorf

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

func GetLevel

func GetLevel() string

func Info

func Info(v interface{})

func Infof

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

func SetLogLevel added in v0.2.2

func SetLogLevel(l string)

func SetLogger

func SetLogger(l Logger)

Types

type Logger

type Logger interface {
	Debug(arg interface{})
	Info(arg interface{})
	Error(arg interface{})
	Debugf(template string, args ...interface{})
	Infof(template string, args ...interface{})
	Errorf(template string, args ...interface{})
	GetLogLevel() string
	SetLogLevel(l string) error
}

func GetLogger

func GetLogger() Logger

Jump to

Keyboard shortcuts

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