package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 9, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
PanicLevel int = iota
FatalLevel
ErrorLevel
WarnLevel
InfoLevel
DebugLevel
TraceLevel
)
CreateLogrusInstance。
获取输出日志到文件的 logrus 实例。
filePath:日志输出文件路径。
size:日志文件最大 size, 单位是 MB。
backups:最大过期日志保留的个数。
local:控制是否打印时间。
level:日志级别。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.