bunyan-rotating-file-stream icon indicating copy to clipboard operation
bunyan-rotating-file-stream copied to clipboard

Feature request: lazy init files

Open mfbarrows opened this issue 3 years ago • 0 comments

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.

mfbarrows avatar Sep 08 '21 05:09 mfbarrows