opening log file in binary mode