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