flatiron/winston — Issue #68: file transport needs a way to cap total log size
Author: jesusabdullah
Created: 2011-11-23 00:11:15+00:00
State: open

Currently, the file transport in Winston has a maximum file size, but instead of implementing a rolling buffer, Winston simply creates new files. This is good if you want to implement a log rotation system, but in many cases you are only interested in recent log output or are using a different transport for long-term log storage.

We think this can be implemented without too much difficulty by adding an option called "maxFiles", which would limit the number of new files Winston creates. If the amount of created files grows too large, Winston should start deleting old logs.

You can find the transport module here: .