Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/glcPublic

GLC (glog cleaner) is a log cleaner for glog.

License

NotificationsYou must be signed in to change notification settings

xuri/glc

Repository files navigation

GLC (glog cleaner)

GLC (glog cleaner)

Build StatusCode CoverageGo Report Cardgo.devlicenseDonateFOSSA Status

Overview

GLC (glog cleaner) is a log clear for glog written in Go. This library support for deleting old logs. There are tools which can be run to do the cleanup such as logrotate, but logrotate can't runs on Windows and embedded system, so we need a cross platform library to rotate the log.

Installation

gogetgithub.com/xuri/glc

Usage

Here is a example usage that will do check every hour and clean the log files that creation time older than 30 minutes.

glc.NewGLC(glc.InitOption{Path:path,Prefix:`glc`,Interval:time.Duration(time.Hour),Reserve:time.Duration(time.Minute*30),})

Contributing

Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.

Licenses

This program is under the terms of the MIT License. SeeLICENSE for the full license text.

FOSSA Status


[8]ページ先頭

©2009-2025 Movatter.jp