Open gigouni opened 6 years ago
Seems to be resolved when using only one file instead of two. Would be better to be able to split streams within different files depending on the log level.
Still waiting to be sure it's fixed. It's not because it didn't crashed yet that it's solved.
@Rcomian Clues about this issue?
Hi,
Expected Behavior
When setting rotation file, it should not crash "randomly".
Current Behavior
Without knowing what happened, the logger crash. I'm using several projects with the same stack, the same Logger module but, when running during the night, some crashed and the other ones are still running (no crash of the logger).
I tried to resolve the problem and found this issue but it seems to be fixed since npm v5.4.1.
Here the report of
npm doctor
Here two examples of the crash of the app:
or even (small difference,
stat
instead ofunlink
)Possible Solution
Code
The Logger is imported as a node module (-> parentConfigPath) but can be run locally, without parent project (for dev usage).
lib/Logger.js
config/config.js
Context (Environment)
package-lock.json
@Rcomian
Thanks