package
module
Version:
v0.0.0-...-413828b
Opens a new window with list of versions in this module.
Published: Jul 9, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
glogclean
介绍
glog没有清理机制,此代码加入了对生成的日志文件大小控制,以及每个log级别(INFO、WARNING、ERROR)的文件个数限制,
默认1分钟清理一次
Documentation
¶
func RunCleanLogTask() chan bool
定时清理glog日志
type LogfileRule struct {
LognamePatter string
MaxFiles int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.