Have a look at the logger docs for a few ways we could improve the logic: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html