How can I get the Forever to write to a different log file every day?

Posted by user1438940 on Stack Overflow See other posts from Stack Overflow or by user1438940
Published on 2012-10-28T04:56:04Z Indexed on 2012/10/28 5:00 UTC
Read the original article Hit count: 84

Filed under:
|
|
|

I have a cluster of production servers running a Node.JS app via Forever. As far as I can tell, my options for log files are as follows:

  1. Let Forever do it on its own, in which case it will log to ~/.forever/XXXX.log
  2. Specify one specific log file for the entire life of the process

What I'd like to do, however, is have it log to a different file every day. eg. 20121027.log, 20121028.log, etc.

Is this possible? If so, how can it be done?

© Stack Overflow or respective owner

Related posts about linux

Related posts about node.js