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:
1. Call VTSTARTLOG with the name of the log file you want.
2. Use VTLOG just like you would use printf, to log messages. Alternately you can use VTLOG1 which takes a single string.
Example:
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.
Generated on Tue Apr 22 10:11:01 2008 for vtdata library by
1.4.5