fix format log file