【日志】C++日记打印编程

C++打印日志编程例子:

int iCnt = 0;

CString csMsg;

CTime curTime;

CMyLog mylog;

CString csMylog;

csMylog.Format("%d:\\CYJ\\ThreadTask%d.log",id);

csMsg.Format("%s第%d客户端,第%d轮温循测试开始\r\n",curTime.Format("%Y-%m-%d %H.%M.%S"),id,iCnt);

mylog.WriteFile(csMsg.csMylog);

pThis->OutputTest(DEBUG_WIN,csMsg.BLACK);

posted on 2017-02-08 23:24  杰出人生  阅读(217)  评论(0)    收藏  举报