Rcomian / bunyan-rotating-file-stream

Is an endpoint for bunyan that lets you control how much disk space logs take.
Other
29 stars 15 forks source link

Feature request: lazy init files #28

Open mfbarrows opened 3 years ago

mfbarrows commented 3 years ago

With just

      stream: new RotatingFileStream({
        path: 'logs/error%F.log',
        period: '1d',
      })       

a new empty file is created on each execution, if it doesn't already exist. It would be fantastically helpful if there were an option so that file didn't get created until the first log, so that I can better monitor errors.