package
module
Version:
v0.0.0-...-5180799
Opens a new window with list of versions in this module.
Published: May 8, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
初始化logrus,给予默认值
默认文件系统,添加本地文件分割的hook
记录文件名和行号
Documentation
¶
func LogDefaultConfig() error
Config 参数配置
MaxAge 设置文件清理前的最长保存时间
RotationTime 设置日志分割的时间,隔多久分割一次
Source Files
¶
Click to show internal directories.
Click to hide internal directories.