Monday, March 10, 2014

Your development log files in Rails is probably huge

I always forget to truncate my development logs, and when I need to debug or dig into the logs, they are dead slow to work with.

Use this simple gist to truncate your logs automagically. It will only touch your development.log, as I do note like when initializers pull production or staging logs into the mix, as that might be a security risk when you just needed to test a part of your app on your production environment.