Ensure underlying logger objects are sync=true
commitb7c6846e317b0f2bfe4807aab34524c2a633947c
authorEric Wong <normalperson@yhbt.net>
Thu, 3 Sep 2009 16:20:42 +0000 (3 09:20 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 3 Sep 2009 16:20:42 +0000 (3 09:20 -0700)
tree013a4590fada5dd821b5f85a376d54ffda7897b8
parentafaa8efb31094a831a68b383523f9bac46a244ac
Ensure underlying logger objects are sync=true

Userspace buffering defaults are dangerous as the Ruby default
IO objects do not do line-aware buffering.  This makes the
README examples with File.open much safer to use out-of-the-box
for users of the pure-Ruby version.  For users on the MRI C
extension logging to regular files, this should not have any
effect as we've optimized those to do unbuffered write(2)
syscalls anyways.
ext/clogger_ext/clogger.c
lib/clogger/pure.rb
test/test_clogger.rb