log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxLogKey = util.CtxKey("ctxLogKey")

	LogTargetOS = "os"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(msg string)
	Debug(msg string)
	Warn(msg string)
	Err(msg string)
	Fatal(msg string)
}

func GetCtxLog

func GetCtxLog(req *http.Request) Logger

type LoggerConf

type LoggerConf struct {
	Level  string `yaml:"level"`
	Target string `yaml:"target"`
}

func (*LoggerConf) NewLogger

func (lc *LoggerConf) NewLogger(key string) Logger

type LoggerDI

type LoggerDI interface {
	NewLogger(key string) Logger
}

Jump to

Keyboard shortcuts

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