winstonjs / winston-daily-rotate-file

A transport for winston which logs to a rotating file each day.
MIT License
899 stars 156 forks source link

How to change Log Rotate Appends number to daily files, #384

Open surban13 opened 11 months ago

surban13 commented 11 months ago

So we have the setting at 20mb and keep for 14 days.

But each day has over 500 files for logs.

I am trying to bring them into Azure monitor, but the numbers on the end won't allow me too. How can I change where those numbers are put?

info-2023-12-11.log

Daily Rotate runs

info-2023-12-11.log becomes info-2023-12-11.log.gz

new daily file then is info-2023-12-11.log.1

Etc...

Need to move that 1 from the file name and put it elsewhere on there.