New release 2.7.0 with log window :
- Add log window: logs can be read now (including SQL error messages). Log can be written from database DLL too using ILog.h
- When generating .SQL file, add "GO" every 100 insert
Now you can see logs using this menu: Options -> Show log.
(Change the log level using the combobox. It takes effect immediately but does change existing lines)
You can add log message yourself in database DLL (for example to debug your DLL) like that:
- Add #include "ILog.h" at the beginning of your .cpp file
- Log a message using:
Code:
int integerVariable = 3;
char* stringVariable = "a string";
getLogger()->log(ILog::LL_Info, "An integer: %d and a string: \"%s\"\n", integerVariable, stringVariable);
This will print a line like that in the log window:
Code:
04/04/2015 16:14:29:397 Info: An integer: 3 and a string: "a string"
The syntax is the same as printf. %s is for strings, %d for integers.
ILog::LL_Info is a log level, to see them all, see the enum named Level in ILog.h.