Updated with the ideas from @kares

http://log2.kares.org/post/59891244469/rails-logger-is-not-threadsafe