Make WinSW logs roll to prevent size continually increasing
On Windows the Huey task workers are contained within WinSW service wrappers. These wrappers create log files that will increase in size over time. It would be good to configure the WinSW service wrapper log files to roll over once over a certain size using the log config as shown here: https://github.com/winsw/winsw/blob/v3/docs/logging-and-error-reporting.md
Comments (5)
-
reporter -
reporter The log configuration I have added uses the roll mode. To quote from the official WinSW docs: if the log file gets bigger than a set size, it gets rolled to myapp.1.out.log, myapp.2.out.log and so on. The nested <sizeThreshold> element specifies the rotation threshold in KB (defaults to 10MB), and the nested <keepFiles> element specifies the number of rolled files to keep (defaults to 8).
I have used the default size and number of rolled files to keep.
-
reporter Resolving merge conflict with changes.rst [skip ci]. Refs issue
#987→ <<cset 6984a6bfdcb0>>
-
reporter Merged in issue987WinswLogFileConfig (pull request #568)
Added configuration to the WinSW log files to ensure their size is contained. Refs issue
#987Approved-by: Ed McDonagh
Fixes issue
#987→ <<cset b011217ab999>>
-
reporter - changed status to resolved
Merged in issue987WinswLogFileConfig (pull request #568)
Added configuration to the WinSW log files to ensure their size is contained. Refs issue
#987Approved-by: Ed McDonagh
Fixes issue
#987→ <<cset b011217ab999>>
- Log in to comment
Added configuration to the WinSW log files to ensure their size is contained. Refs issue
#987→ <<cset 0b3e40ccfdb5>>