PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

STLogFile - easy way to trace debug info

I found this logging tool (made by Nicholas Tsipanov) very useful and easy to use.

No special initialisation needed.
Outputs a plain txt file in the same dir.

Maybe you already know about it ;)

It can:

Code:
//STLOG_WRITE
STLOG_WRITE(_T("Buggievar=%d, somestr=%s"), Var,str);

//STLOG_MARKER block macro:
STLOG_MARKER(_T("Game::GameLoop"));
//output is entering>> and exiting<< GameLoop
//If function fails => you'll see only entering>>

//It also can:

//STLOG_WRITE_DATA
STLOG_WRITE_DATA(Buffer, 435);

STLOG_LASTERROR

//Available options:

STLOG_DEBUG
STLOG_CREATE_NEW
STLOG_CREATE_FILE_IN_THE_SAME_DIRECTORY
STLOG_PRINT_COMPILE_INFO
STLOG_USE_FOR_TRACE



more info here : http://www.smartphonedn.com/articles/stlog.html

P.S. I wanted to post this topic in this forum, since I think here it would be more useful than in GeneralDev.
Attachments:
stlogfile.zip (8 KB)