make msg_log a file pointer