Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » U++ logging refactored
Re: U++ logging refactored [message #38390 is a reply to message #36754] Thu, 13 December 2012 13:37 Go to previous message
NilaT is currently offline  NilaT
Messages: 70
Registered: November 2011
Location: Austria
Member
Hello,

well I tried it, but I gave up.
Now I'm doing the following:

Mutex LogFileMutex;

void WriteLogfile(String text) {
 LogFileMutex.Enter();
 Time zeit = GetSysTime();
 String zt = Format("[%i/%i/%i/ %i:%i:%i]", zeit.day, zeit.month, zeit.year, zeit.hour, zeit.minute, zeit.second);
 FileAppend file(m_LogFilename);
 file.PutLine(Format("%s %s", zt, text));
 file.Close();
 LogFileMutex.Leave();
}

[Updated on: Thu, 13 December 2012 13:41]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SQL refactored, adding per-thread option, added second SQLR
Next Topic: MySql now supports reconnection features
Goto Forum:
  


Current Time: Sat Jul 19 11:24:04 CEST 2025

Total time taken to generate the page: 0.03838 seconds