change log file format to binary