mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-29 11:22:07 +00:00
TUN-1734: Pin packages at exact versions
This commit is contained in:
4
vendor/github.com/rifflock/lfshook/README.md
generated
vendored
4
vendor/github.com/rifflock/lfshook/README.md
generated
vendored
@@ -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 [go-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/lestrrat-go/file-rotatelogs) log rotation can easily be achieved.
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/lestrrat/go-file-rotatelogs"
|
||||
rotatelogs "github.com/lestrrat-go/file-rotatelogs"
|
||||
"github.com/rifflock/lfshook"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
Reference in New Issue
Block a user