modulepackage
0.0.0-20220211133110-53752135082d
Repository: https://github.com/snowzach/rotatefilehook.git
Documentation: pkg.go.dev
# README
RotateFileHook
This is a simple hook for logrus to write log files using https://github.com/natefinch/lumberjack
import ("github.com/snowzach/rotatefilehook")
rotateFileHook, err := rotatefilehook.NewRotateFileHook(rotatefilehook.RotateFileConfig{
Filename: "logfile.log",
MaxSize: 5,
MaxBackups: 7,
MaxAge: 7,
Level: logrus.LevelDebug,
Formatter: logrus.TextFormatter,
})
# Functions
No description provided by the author
# Structs
No description provided by the author
No description provided by the author