logger

package
v0.0.0-...-10cedd8 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitLogger

func InitLogger() (err error)

InitLogger 初始化lg

Types

type Logger

type Logger interface {
	Info(msg interface{})
	Infof(template string, args ...interface{})
	Warn(msg interface{})
	Warnf(template string, args ...interface{})
	Error(msg interface{})
	ErrorWithCode(code int, err error)
	ErrorWithErr(msg string, err error)
}

func New

func New() Logger

Jump to

Keyboard shortcuts

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