glog

package
v0.0.0-...-e027c79 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GLog = defaultLogger()
)

var ...

Functions

func AddLogger

func AddLogger(name string)

AddLogger 添加一个日志对象

Types

type ILogger

type ILogger interface {
	Logger() *logrus.Logger
	Name() string
}

ILogger 日志接口,封装logrus.Logger

func Get

func Get(name string) ILogger

Get 获取日志对象

Jump to

Keyboard shortcuts

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