simple-node-logger
simple-node-logger copied to clipboard
[Question]
Is there a way to specify max file size when creating createSimpleFileLogger?
There is not a way to limit the size but a good place to look would be the rolling file appender. It currently rolls on a specific time interval, hour, minute day, week, etc. But it would be easy to simply roll based on file size. so when a log file gets to a certain threshold, it gets rotated out.
feel free to fork and enhance and then submit a pull request if you want it merged in. thanks...