I wonder if it would be more safe to use a thread-safe ring buffer - I was actually looking at the one in Celluloid the other night: https://github.com/celluloid/celluloid/blob/master/lib/celluloid/logging/ring_buffer.rb