RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

Is MonoLogger safe?

MonoLogger is a "lock-free logger for Ruby 2.0". It's actually the exact same as Ruby's Logger, minus the lock. I wasn't sure if this was safe, so I did some research. Turns out MonoLogger does the right things to ensure that log messages aren't interleaved even in the face of multiple threads. Warning: you might learn a thing or two about working with Unix file descriptors!


Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!