logrus

package
v0.0.0-...-63bff7e Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() base.MyLogger

NewLogger 会新建并返回一个日志记录器。

func NewLoggerBy

func NewLoggerBy(
	level base.LogLevel,
	format base.LogFormat,
	writer io.Writer,
	options []base.Option) base.MyLogger

NewLoggerBy 会根据指定的参数新建并返回一个日志记录器。

func WithLocation

func WithLocation(entry *logrus.Entry) *logrus.Entry

WithLocation 用于附加记录日志的代码的位置。

Types

This section is empty.

Jump to

Keyboard shortcuts

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