How do you show the full console log?


#1

I’m trying to debug my app, but the buffer size of the log in the editor is too short, so I miss the beginning of the error.

Is there an easy/recommended way to see a full log, output the log to a file, or change the buffer size of the in-editor logs?


#2

I’ve been trying to find where the logs are being written but I suspect the std is being redirected to the UI without saving that into a file (because of the size limit of the app).

I recommend to use your own logger and output that into a file that you can tail in the instance console.

// edit
Yup, Glitch has a package under /etc/debugger to redirect logs through a proxy, they are not being written in a file so you’ll have to debug it yourself.


#4

I sometimes use Winston for running my own logger to a separate file - this will only log stuff you call from the winston logger instance but it might help you on your journey! I just made https://glitch.com/edit/#!/starter-winston?path=server.js:6:1 where you can see a starting point for using it.


Is there is way to see old log too!