--log file object getting closed prematurely (Issue #219)
logging tests for --log and --log-file
Merge pull request #1205 from qwcode/issue-219

--log file object getting closed prematurely (Issue #219)