Compiles and tested on windows/linux
Init logging/tracing:
TraceToConsole();
// or
TraceToFile("filename");
// or for win32
TraceWin32();
Do the tracing:
TF0("Trace message"); // will be output to console, file
TF1("Message id %d", 1);
..etc..
Simple right? See test.cpp for more examples.
Download here.