logx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppHook

type AppHook struct {
	Name string
}

func NewAppHook

func NewAppHook(name string) *AppHook

func (*AppHook) Fire

func (s *AppHook) Fire(entry *logrus.Entry) error

func (*AppHook) Levels

func (s *AppHook) Levels() []logrus.Level

type Log

type Log struct {
	*logrus.Logger
}

func New

func New(opt LogOpt) *Log

func (*Log) WrapError

func (l *Log) WrapError(err error) error

type LogOpt

type LogOpt struct {
	LogPath string // 日志路径
	Env     string // 环境:dev开发环境 prod生产环境
}

Jump to

Keyboard shortcuts

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