log

package
v0.0.0-...-f657c13 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalLogger

func GetGlobalLogger() *logrus.Logger

func GetSpecificLogger

func GetSpecificLogger(funcName string, otherFields ...string) *logrus.Entry

GetSpecificLogger 从全局logger上创建一个子logger并指定一些固定参数 参数:

funcName: 函数名称。在log中将增加FuncName 字段
otherFields: 其他参数列表。数组长度应该为偶数,key,value,key,value....

func InitGlobalLogger

func InitGlobalLogger()

InitGlobalLogger 使用全局配置中的日志配置初始化全局logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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