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  |
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
|
|
|
Goto Forum:
Current Time: Sat Jul 19 11:24:04 CEST 2025
Total time taken to generate the page: 0.03838 seconds
|