colbygk/log4r — pull request #4 by blaulabs (2011-11-30 09:51:41+00:00)
Title: Fixed Encoding::UndefinedConversionError errors

Hey Colby,

we ran into an issue where the Log-File was UTF-8 and one of the Rails app tried to log messages in a different Encoding, which ended in a `Encoding::UndefinedConversionError `. The fix was to always open Log-Files in binary mode (like e.g. [Rails' BufferedLogger](https://github.com/rails/rails/blob/master/activesupport/lib/active_support/buffered_logger.rb#L66) does).

Hope this is useful and doesn't break anything?!

Best,
Daniel