1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Add a new, experimental logging interface designed to aid in debugging of

deeply embedded projects that use SQLite.

FossilOrigin-Name: 103321e37ae46eacfad4e127d13477ad5dd02bab
This commit is contained in:
drh
2010-02-18 18:45:09 +00:00
parent da730f6eb4
commit 3f28070109
7 changed files with 73 additions and 13 deletions

View File

@@ -378,6 +378,16 @@ int sqlite3_config(int op, ...){
sqlite3GlobalConfig.nLookaside = va_arg(ap, int);
break;
}
/* Record a pointer to the logger funcction and its first argument.
** The default is NULL. Logging is disabled if the function pointer is
** NULL.
*/
case SQLITE_CONFIG_LOG: {
sqlite3GlobalConfig.xLog = va_arg(ap, void(*)(void*,int,const char*));
sqlite3GlobalConfig.pLogArg = va_arg(ap, void*);
break;
}
default: {
rc = SQLITE_ERROR;