[GME-commit] GMESRC/GME/Gme GMEEventLogger.h,1.7,1.8

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Mon Mar 8 14:46:08 CST 2004


Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv20263

Modified Files:
	GMEEventLogger.h 
Log Message:
Event logger logging itself, and improvements to GMEEventPrintf

CVS User: brianw

Index: GMEEventLogger.h
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEEventLogger.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** GMEEventLogger.h	5 Mar 2004 21:50:53 -0000	1.7
--- GMEEventLogger.h	8 Mar 2004 20:46:05 -0000	1.8
***************
*** 83,90 ****
  				EventLog = fopen(path+CurrentTime,"w");
  
! 				if (EventLog != NULL) //fopen failed
  				{	
  					initialized = TRUE;
  					newLine = TRUE;
  				}
  			}
--- 83,91 ----
  				EventLog = fopen(path+CurrentTime,"w");
  
! 				if (EventLog != NULL) //fopen succeded
  				{	
  					initialized = TRUE;
  					newLine = TRUE;
+ 					LogGMEEvent("CGMEEventLogger::initialize\r\n");
  				}
  			}
***************
*** 96,99 ****
--- 97,101 ----
  		if(initialized)
  		{
+ 			LogGMEEvent("CGMEEventLogger::StopLogging\r\n");
  			fflush(EventLog);
  			fclose(EventLog);
***************
*** 105,108 ****
--- 107,111 ----
  	static void EmergencyEvent()
  	{
+ 		LogGMEEvent("CGMEEventLogger::EmergencyEvent\r\n");
  		StopLogging();
  	};
***************
*** 155,158 ****
--- 158,164 ----
  			}
  		}
+ 		CTime time = CTime::GetCurrentTime();
+ 		CString CurrentTime = time.Format("%b %d, %H:%M:%S ");
+ 		fprintf(EventLog,CurrentTime);
  
  		va_list v1;
***************
*** 160,163 ****
--- 166,171 ----
  		vfprintf(EventLog,output,v1);
  		va_end(v1);
+ 
+ 		fflush(EventLog);
  
  	};



More information about the GME-commit mailing list