simple-node-logger icon indicating copy to clipboard operation
simple-node-logger copied to clipboard

[Question]

Open anking opened this issue 6 years ago • 1 comments

Is there a way to specify max file size when creating createSimpleFileLogger?

anking avatar Aug 11 '18 16:08 anking

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...

darrylwest avatar Sep 06 '18 00:09 darrylwest