logs

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger added in v0.0.4

func InitLogger() *logrus.Logger

Types

type CustomText added in v0.0.4

type CustomText struct{}

CustomText 自定义的日志格式

func (*CustomText) Format added in v0.0.4

func (f *CustomText) Format(entry *logrus.Entry) ([]byte, error)

type ErrorLog added in v0.0.5

type ErrorLog struct {
	// contains filtered or unexported fields
}

func NewDefaultLog added in v0.0.5

func NewDefaultLog() *ErrorLog

func (*ErrorLog) DebugMsg added in v0.0.5

func (err *ErrorLog) DebugMsg(msgs ...string)

DebugMsg

func (*ErrorLog) ErrorMsg added in v0.0.5

func (err *ErrorLog) ErrorMsg(msgs ...string)

ErrorMsg

func (*ErrorLog) InfoMsg added in v0.0.5

func (err *ErrorLog) InfoMsg(msgs ...string)

Info

func (*ErrorLog) WarnMsg added in v0.0.5

func (err *ErrorLog) WarnMsg(msgs ...string)

WarnMsg

Jump to

Keyboard shortcuts

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