logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimestampFormat = `2006-01-02 15:04:05`

DefaultTimestampFormat 默认日期解析格式

Variables

Log 实例

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*logrus.Entry
}

Logger 实例

func Entry

func Entry() *Logger

Entry 返回默认日志

func (*Logger) WithError

func (entry *Logger) WithError(err error) *logrus.Entry

WithError 重载error

type WechatFormatter

type WechatFormatter struct{}

WechatFormatter 日志格式化

func (*WechatFormatter) Format

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

Format 格式化

Jump to

Keyboard shortcuts

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