Closing fs write stream when server is closed (via CTRL-C, etc.)

后端 未结 0 1176
小蘑菇
小蘑菇 2021-01-05 06:42

I open a write stream to a file "app.log" so that I can log to it while the Express server is up and running. But if I close it via a SIGINT, etc. do I have to cat

相关标签:
回答
  • 消灭零回复
提交回复
热议问题