Refactored logs to use a logs/ folder and also roll over after 10MB. … (#448)
# Changed - Changed: Log files now roll (kavita, kavita1, etc) up to 5 files, each with a max of 10MB each. After all 5 files fill up, they will roll over. (Closes #446 ) ============================= * Refactored logs to use a logs/ folder and also roll over after 10MB. A maximum of 5 logs will persist (50MB of log data). * Updated entrypoint to accommodate rolling logs Co-authored-by: Chris Plaatjes <kizaing@gmail.com>
This commit is contained in:
parent
58856c0d70
commit
01007dee28
3 changed files with 27 additions and 31 deletions
|
|
@ -17,10 +17,10 @@
|
|||
"Microsoft.AspNetCore.Hosting.Internal.WebHost": "Information"
|
||||
},
|
||||
"File": {
|
||||
"Path": "kavita.log",
|
||||
"Path": "logs/kavita.log",
|
||||
"Append": "True",
|
||||
"FileSizeLimitBytes": 0,
|
||||
"MaxRollingFiles": 0
|
||||
"FileSizeLimitBytes": 10485760,
|
||||
"MaxRollingFiles": 5
|
||||
}
|
||||
},
|
||||
"Port": 5000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue