Open lukaszjenczmyk opened 2 years ago
Quick update: I investigated the problem a bit more and I found out that the source of the problem is in file-stream-rotator package (a dependency of winston-daily-rotate-file). I opened a PR it that repository: https://github.com/rogerc/file-stream-rotator/pull/94
Another update: file-stream-rotator fixed that issue in v1.0.0, so now winston-daily-rotate-file should update the dependency version and the issue will be resolved.
Description
When
filename
contains unusual characters (for example./logs))/application-%DATE%.log
), an error is thrown:How to reproduce
OS: Mac & Windows (haven't checked other systems) NodeJS: v16.10.0 winston-daily-rotate-file: v4.7.1
I used the code snippet from the README file and changed
filename
to a path that contains))
(I know this is a weird path, but one of the users of my application has such characters in the Windows account user name):Run the script 2 times. The first time it will pass, the next time it will fail.