Make WinSW logs roll to prevent size continually increasing

Issue #987 resolved
David Platten created an issue

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)

  1. David Platten 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.

  2. Log in to comment