Skip to content

Instantly share code, notes, and snippets.

@phiggins
Created August 5, 2010 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phiggins/510289 to your computer and use it in GitHub Desktop.
Save phiggins/510289 to your computer and use it in GitHub Desktop.
(04:12:04 AM) fd0: is there an example on how to write to a logfile with eventmachine?
(04:12:21 AM) fd0: or should i use default ruby (eventually blocking) io?
(04:12:44 AM) raggi: asynchronous writes to disk are kinda complicated due to platform issues
(04:12:52 AM) raggi: so at the moment, we don't really support it
(04:12:56 AM) raggi: you can use a few tricks though
(04:12:59 AM) fd0: namely?
(04:13:12 AM) raggi: e.g. EM.popen(cat - >> logfile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment