logger

package
v0.0.0-...-a12e6e1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableLog

func DisableLog()

func InitLogger

func InitLogger(l Logger)

func RegisterLogRequest

func RegisterLogRequest(writer ...io.Writer)

func ReqLog

func ReqLog(req *internal.RequestLogger)

Types

type COLOR

type COLOR int
const (
	BLACK COLOR = iota + 30
	RED
	GREEN
	YELLOW
	BLUE
	PURPLE
)

type Logger

type Logger interface {
	Recovery(format string, val ...interface{})

	Critical(format string, val ...interface{})

	Error(format string, val ...interface{})

	Warning(format string, val ...interface{})

	Info(format string, val ...interface{})
}
var Log Logger

Jump to

Keyboard shortcuts

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