我的 Node 模块使用 pm2 的 --log-date-format 选项在输出 console.log 时包含时间戳。顺便说一下, Node 模块的日志中有时可能会丢失时间戳。
例如,
2018-03-01 17:04:02 hello 1
2018-03-01 17:04:02 hello 2
hello 3
2018-03-01 17:04:03 hello 4
如何解决这个问题?这是因为pm2还不成熟吗?
谢谢。
最佳答案
也许这就是那个问题?
https://github.com/Unitech/pm2/issues/183
但是,这个问题还没有完全解决,但现在已经关闭了。在评论中 pm2 有时会出现 --log-date-format
关于node.js - 有时 pm2 不输出时间戳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49045198/