Prevent .log files from being hidden?

I am trying to setup any console logs to go to a file since glitch doesn’t always like to keep error logs. Sometimes there would be an error, my project goes offline, then as soon as I go online it is already restarting and cleared the console.

.log files seem to be hidden upon refresh after creating those files. Can there be an option to show .log files?

Hey @Fyrlex,

.log files are .gitignored by default, it is possible to show them in your project. In your .gitignore file, type

!<FILE_NAME>.log

Hope this helps!

2 Likes

I have my logs stored in a folder since they are created by day. Can I ignore a folder?

Yes, you should be able to.

Would that just be: !logfiles/ ?

Yes. Let me know here if it doesn’t work.

It worked! Thank you so much!

1 Like

You’re welcome! :slight_smile: