file=fopen(logfile,"a"); fprintf(file,"[%s] %s",(getRealTimeString()).c_str(),msg);
file = fopen( logfile, "a" );  QString logMessage = QString( "[%1] %2\n" ).arg( getRealTimeString().c_str() ).arg( msg );   logMessage = logMessage.replace( QRegExp( "\n" ), "" );  fprintf( file, "%s", logMessage.ascii() );
void savelog(const char *msg, char *logfile){		FILE *file;		file=fopen(logfile,"a");		fprintf(file,"[%s] %s",(getRealTimeString()).c_str(),msg);#ifdef DEBUG		clConsole.send("DEBUG: Logging to %s\n", logfile);#endif		fclose(file);}