简体   繁体   中英

node.js forever, how can I set the limit file-size of forver debug log

I run node.js forever with option to log output debug -d and -l options. I known forever use winston for logging. How can I limit the file size of the LOGFILE (pass option maxsize and maxFiles to winston) without modifying forever.js. Is there forever already have this feature?

Thank you.

There's no such option unfortunately. Also I don't think it would be optimal to do so, imagine something checking the file size after each log or after a number of seconds.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM