rogerc / file-stream-rotator

NodeJS file stream rotator
MIT License
143 stars 69 forks source link

newLogFileName is wrong in line588 #68

Closed dsachwani closed 2 years ago

dsachwani commented 4 years ago

Hello Roger, I am trying to have no date appended in current/active log, for that options I gave are: { level: process.env.LOG_LEVEL, filename: ${appRoot}/logs/mylog, handleExceptions: true, json: true, maxSize: '100m', // ~100MB maxFiles: 15, colorize: false, tailable: false, frequency: 'd', extension: '.log', }

but after size exceeds the new file created is mylog.log.1 but still logging continues in mylog.log, I guess on line 581 var newLogfile = logfileName; can be given , not sure though :)

Please let me know if I am selecting correct options

panbhatt commented 3 years ago

u need to change tailable:true

rogerc commented 2 years ago

tailable: false, is not an option in this module so not sure if you are using a wrapper to this module or using something else completely. Closing issue.