| <<< Unilog Server Window | Index | Sample Client Source Sample >>> |
Before unilog can be used, the client source code must be instrumented.
Choose your own C++ project directory, then and drag and drop it on top of the _04_unilog_insert.bat in windows explorer.
All *.h and *.cpp will be instrumented.
(For other file extensions you may need to manually edit the _04_unilog_insert.bat batch file.)
In addition to the source instrumentation the symbols.txt is created in the client project directory.
Add the following directives on to each C++ source file in your project:
#define UNILOG_TRACING_ON
#include "../source/Server/UnilogClient.h"
(you may need to adjust the path to the UnilogClient.h.)
Add Server/UnilogClient.cpp file to the client project. Sometimes we can cheat by including it in one of the existing implementation files:
#define UNILOG_TRACING_ON
#include "../source/Server/UnilogClient.h"
#include "../source/Server/UnilogClient.cpp"
Recompile the client.
| <<< Unilog Server Window | Index | Sample Client Source Sample >>> |