winstonjs / winston-daily-rotate-file

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

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

Open surban13 opened 9 months ago

surban13 commented 9 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.