node.js - Log file disappeared on cloudfoundry -


When I modified the code and updated my application on cloudfoundry cf push app-name used, those log files generated by winston disappeared Do anyone know how to solve this kind of problem? Thank you.

Apps running in the cloud foundry are given a short-lived file system, which has closed an app Has been started and has started again, is pushed again, etc. You can not trust anything written on the file system.

You must configure your logging library to write all your output on stdout and / or stderr. This way the logging subsystem will capture the log output. It will then be made available through "CF Log AppName", and allows logs to dry in external storage and analysis systems.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -