glogclean

package module
v0.0.0-...-413828b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

glogclean

介绍

glog没有清理机制,此代码加入了对生成的日志文件大小控制,以及每个log级别(INFO、WARNING、ERROR)的文件个数限制, 默认1分钟清理一次

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCleanLogTask

func RunCleanLogTask() chan bool

定时清理glog日志

func StopTask

func StopTask()

停止清理

Types

type LogfileRule

type LogfileRule struct {
	LognamePatter string
	MaxFiles      int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL