I'm using Winston logging and have specified file size to be max 10MB.
{
filename: 'e:\app.log',
json:false,
maxsize:'10MB',
maxFiles:'10',
timestamp:true,
level:'silly'
}
I'm expecting the app.log file to be rotated upon size reaching 10MB, but this has never happened and my log file grows to even GBs.
Is there something I'm doing wrongly? Thanks.
As you can see here the maxsize
must be in bytes
so change it for 10000000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With