How to log with Ruby and eventmachine?
Posted
by
Justin
on Stack Overflow
See other posts from Stack Overflow
or by Justin
Published on 2010-11-11T15:52:16Z
Indexed on
2011/06/23
16:23 UTC
Read the original article
Hit count: 409
I'm writing an application using Ruby and the Eventmachine library. I really like the idea of non blocking I/O and event driven systems, the problem I'm running into is logging. I'm using Ruby's standard logger library. Its not that logging takes forever but it seems like something that shouldn't block and it does. Is there a library out there somewhere that extends Ruby's standard logger implementation to be non-blocking or should I just call EM::defer for my logging calls? Is there a way I can make eventmachine do this for me already?
© Stack Overflow or respective owner