MBASEAPI void MIRACLEEXPORT logDebugVA(LPCTSTR lpszFormat,...) { CString msg; ASSERT(AfxIsValidString(lpszFormat)); va_list argList; va_start(argList, lpszFormat); msg.FormatV(lpszFormat, argList); va_end(argList); _logDebug(msg); }
MBASEAPI void MIRACLEEXPORT _logError(LPCTSTR msg) { if(!initlog) logInit(); FILE *f = fopen(strErrorFile,"a+t"); if (f!=NULL) { CTime Time = CTime::GetCurrentTime(); CString TimeStr = Time.Format("%d/%m/%Y-%H:%M:%S:"); fprintf(f,"%s%s \n",TimeStr,msg); fclose(f); } _logDebug(msg); }
MBASEAPI void MIRACLEEXPORT logDebug(LPCTSTR lpszMsg) { ASSERT(AfxIsValidString(lpszMsg)); _logDebug(lpszMsg); }
MBASEAPI void MIRACLEEXPORT logDebug(UINT nID) { CString msg; msg.LoadString(nID); _logDebug(msg); }
Base::ParseRes_* Base::__parseDefaultToText(Base::SeekRet_* selfSR) { Op_* selfOp=(Op_* )selfSR->op_; Int begin=selfSR->pos_; DEBUG(_logDebug(begin,"__parseDefaultToText");)