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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -