logger

package
v0.0.0-...-5110490 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Types

type Ctx

type Ctx map[string]interface{}

type Logger

type Logger interface {
	SetPrefix(prefix string) Logger
	Debug(msg string, ctx Ctx)
	Info(msg string, ctx Ctx)
	Warn(msg string, ctx Ctx)
	Error(msg string, ctx Ctx)
	Panic(msg string, ctx Ctx)
	Trace(msg string, ctx Ctx)
	Flush()
}

func GetLogger

func GetLogger(names ...string) Logger

different name whit different log file, you can add prefix to set [gin] module log

func NewZapLogger

func NewZapLogger(name string, logLevel string) Logger

Jump to

Keyboard shortcuts

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