2 *****************************************************************************
6 * Description: ÷Ù×ÏÄ ÏÔÌÁÄÏÞÎÏÊ ÉÎÆÏÒÍÁÃÉÉ × log ÆÁÊÌ
8 * $Id: debug.c,v 1.2 2005/11/16 16:19:40 nobunaga Exp $
10 *****************************************************************************
21 *****************************************************************************
22 * -= óÏÚÄÁÎÉÅ ÚÁÐÉÓÉ × log-ÆÁÊÌÅ =-
23 *****************************************************************************
25 void PrintfLog(FILE * logFile, char * scriptName, char * fmt, ...)
29 char buff[MAX_LOG_BUFF_LEN];
35 va_start(vaList, fmt);
36 vsprintf(buff, fmt, vaList);
40 ctime_r(&curTime, curTimeCh);
41 curTimeCh[strlen(curTimeCh)-1] = 0;
42 fprintf(logFile, "%s [%s]: %s\n", scriptName, curTimeCh, buff);