darrylwest/simple-node-logger

Rotate files reaching a max size

Closed this issue · 2 comments

Hi

I am unable to rotate files reaching a max size in same day itself. I am unable to open log files because the size is too huge

you could try creating hourly logs rather than daily. There is an example in the "examples" folder. All you need to do is add hours to the date format like this: 'YYYY.MM.DD-HH'

Thank you darrylwest