Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultLogouts = &logrus.Logger{}
)
Functions ¶
Types ¶
type Parameter ¶
type Parameter struct {
Level logrus.Level // 级别
ReportCaller bool // 如果您希望将调用方法添加为字段
Fields logrus.Fields // 自定义字段map
Hook logrus.Hook // 您可以添加用于日志记录级别的挂钩。例如,将错误发送到上的异常跟踪服务Error,Fatal并将Panic信息发送到StatsD或同时记录到多个位置,例如syslog。
IO io.Writer // io
RegisterExitHandler func() // 程序异常后即将退出事件
DeferExitHandler func() //
}
* 参数
Click to show internal directories.
Click to hide internal directories.