From 3b30f00a1252d7b5f765b38268ccaabc11816c4d Mon Sep 17 00:00:00 2001 From: Simon Eskildsen Date: Sat, 26 Jul 2014 21:46:04 -0400 Subject: [PATCH] readme: document log rotation --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 318c2a9..baf1af5 100644 --- a/README.md +++ b/README.md @@ -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