Put date/time in logfile header
Posted: Fri Sep 30, 2011 6:15 pm
As per title, would be nice to have this information in the .log
Cheers ..
Cheers ..
Nistune is a real-time tuning suite designed especially for Nissan vehicles
https://nistune.com/forum/
// Get date / time into log header for Torque
CTime currtime = CTime::GetCurrentTime();
CString timestring;
timestring.Format(_T(" %02d/%02d/%04d::%02d:%02d:%02d"),
currtime.GetMonth(),
currtime.GetDay(),
currtime.GetYear(),
currtime.GetHour(),
currtime.GetMinute(),
currtime.GetSecond());
CString dline = "DESC: " + GetDocument()->m_pAddress->ecu_adr_desc + " : " +
GetDocument()->m_pImageHdlr->imagemgr[curimg].description + timestring + _T("\r\n");
h_consult_log.Write(dline.GetBuffer(0), dline.GetLength());