Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ If no formatter is provided via `lfshook.NewHook`, a default text formatter will

### Log rotation
In order to enable automatic log rotation it's possible to provide an io.Writer instead of the path string of a log file.
In combination with packages like [file-rotatelogs](https://github.com/lestrrat-go/file-rotatelogs) log rotation can easily be achieved.
In combination with packages like [file-rotatelogs](https://github.com/iproj/file-rotatelogs) log rotation can easily be achieved.

```go
package main

import (
rotatelogs "github.com/lestrrat-go/file-rotatelogs"
rotatelogs "github.com/iproj/file-rotatelogs"
"github.com/rifflock/lfshook"
"github.com/sirupsen/logrus"
)
Expand Down