|
vtdata library
|
This class provide a convenient way to log all the messages that your application generates. Everything logged will be saved to a file, and also be sent to the console. Under MSVC, the log output will go to the Debug Output window.
There is always and only a single vtLog instance (singleton), called g_Log.
To use:
VTSTARTLOG("debug.txt"); VTLOG("This code was compiled on %s\n", __DATE__); VTLOG1("Program starting.\n");
That's it. The file will be flushed immediately after every write, so that log output will not be lost even if your application crashes.
1.7.4