readme: document log rotation

This commit is contained in:
Simon Eskildsen 2014-07-26 21:46:04 -04:00
parent f0cb18fc85
commit 3b30f00a12
1 changed files with 7 additions and 0 deletions

View File

@ -269,4 +269,11 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
}
```
#### Rotation
Log rotation is not provided with Logrus. Log rotation should be done by an
external program (like `logrotated(8)`) that can compress and delete old log
entries. It should not be a feature of the application-level logger.
[godoc]: https://godoc.org/github.com/Sirupsen/logrus