mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(logging): make log size and log backups configurable (#657)
feat(logging): make log size and backups configurable
This commit is contained in:
parent
9e0edc577f
commit
0af95e2b44
4 changed files with 38 additions and 2 deletions
|
@ -59,8 +59,8 @@ func New(cfg *domain.Config) Logger {
|
|||
l.writers = append(l.writers,
|
||||
&lumberjack.Logger{
|
||||
Filename: cfg.LogPath,
|
||||
MaxSize: 50, // megabytes
|
||||
MaxBackups: 3,
|
||||
MaxSize: cfg.LogMaxSize, // megabytes
|
||||
MaxBackups: cfg.LogMaxBackups,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue