mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-27 16:01:32 +01:00
Limit max number of log files kept for #219 -- So far we haven't had any use cases for historical logs for debugging, so this probably isn't needed
This commit is contained in:
parent
9b7d7c57b5
commit
24f69ca29d
@ -42,7 +42,7 @@ func GetLogger() *logrus.Logger {
|
||||
lumberjackLogger := &lumberjack.Logger{
|
||||
Filename: path.Join(homedir, data.GetHishtoryPath(), "hishtory.log"),
|
||||
MaxSize: 1, // MB
|
||||
MaxBackups: 10,
|
||||
MaxBackups: 1,
|
||||
MaxAge: 30, // days
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user