package
Version:
v0.0.0-...-6e78f20
Opens a new window with list of versions in this module.
Published: Oct 28, 2019
License: Apache-2.0
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.
Documentation
¶
View Source
const (
MAXSIZE = 8
MAXBACKUPS = 2
MAXAGE = 7
)
*
- 获取日志
- filePath 日志文件路径
- level 日志级别
- maxSize 每个日志文件保存的最大尺寸 单位:M
- maxBackups 日志文件最多保存多少个备份
- maxAge 文件最多保存多少天
- compress 是否压缩
- serviceName 服务名
Source Files
¶
Click to show internal directories.
Click to hide internal directories.