Made the default log able to write to a file handle rather than just STDERR