mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02: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{
|
lumberjackLogger := &lumberjack.Logger{
|
||||||
Filename: path.Join(homedir, data.GetHishtoryPath(), "hishtory.log"),
|
Filename: path.Join(homedir, data.GetHishtoryPath(), "hishtory.log"),
|
||||||
MaxSize: 1, // MB
|
MaxSize: 1, // MB
|
||||||
MaxBackups: 10,
|
MaxBackups: 1,
|
||||||
MaxAge: 30, // days
|
MaxAge: 30, // days
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user