You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
Home > Troubleshooting > How do I preserve logs that are lost when my app restarts?
How do I preserve logs that are lost when my app restarts? print icon

To keep our system healthy, all apps created on Glitch are automatically restarted every 12 hours.  If these restarts cause you to lose data that your app has been collecting, you can try adding a persistent log.

 

This starter project contains code that allows your project to preserve data through file logging. From the project page, you can either:

  • Click View Source to review the code and copy what you need into your existing project, or
  • Click Remix to save a copy of the ~starter-winston project to your account.  From there, you can use it as a template for creating a project with persistent logging.
Got more questions?  Check out our Community Forum

Open 24/7, the forum is where Glitch makers help each other and show off all the rad apps that they have created.  It's the friendliest community of coders on the Web!


 
Feedback
0 out of 0 found this helpful

scroll to top icon