https://github.com/koorgoo/rotate
Rotation for *os.File
https://github.com/koorgoo/rotate
log logging logrotate logrus rotate zap
Last synced: 6 months ago
JSON representation
Rotation for *os.File
- Host: GitHub
- URL: https://github.com/koorgoo/rotate
- Owner: koorgoo
- License: mit
- Created: 2018-10-09T13:05:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-12T07:11:17.000Z (over 7 years ago)
- Last Synced: 2025-05-14T02:41:21.808Z (about 1 year ago)
- Topics: log, logging, logrotate, logrus, rotate, zap
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rotate [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci]
Rotation for `*os.File`.
## Installation
```
go get -u github.com/koorgoo/rotate
```
## Quick Start
```
f := rotate.MustOpen(name, rotate.Config{
Bytes: rotate.MB,
Count: 10,
})
defer f.Close()
```
See [examples][examples].
[doc-img]: https://godoc.org/github.com/koorgoo/rotate?status.svg
[doc]: https://godoc.org/github.com/koorgoo/rotate
[ci-img]: https://travis-ci.org/koorgoo/rotate.svg?branch=master
[ci]: https://travis-ci.org/koorgoo/rotate
[examples]: https://github.com/koorgoo/rotate/tree/master/example