1

我在节点服务器中使用 pm2。我想保存日志,按时间或日志文件大小分隔。

$pm2 start test_node.js -o out.log --log-date-format "YYYY HH:MM"

我保存日志以进行每日报告。

我该怎么做?

4

0 回答 0