Rewrite _emit_file in LoggingHandler.
Rewrite _emit_file in LoggingHandler.

The function is now similar to that in ThinBkrHandler and shoudl be able
to work with most common file like objects.

tlamer/teres,tlamer/teres