log

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GsDebug added in v0.0.24

func GsDebug() *log.Entry

func GsError added in v0.0.24

func GsError() func(errorInfos ...string) *log.Entry

func GsFatal added in v0.0.24

func GsFatal() func(errorInfos ...string) *log.Entry

func GsInfo added in v0.0.24

func GsInfo() *log.Entry

func GsPanic added in v0.0.24

func GsPanic() func(errorInfos ...string) *log.Entry

func GsWarn added in v0.0.24

func GsWarn() *log.Entry

func InitLog

func InitLog(conf *conf.TomlConfig)

初始化log配置,配置logrus日志文件滚动生成和

Types

type LoggerStarter

type LoggerStarter struct {
	infra.BaseStarter
}

func (*LoggerStarter) Setup

func (l *LoggerStarter) Setup(ctx context.Context)

Jump to

Keyboard shortcuts

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