• Welcome, Guest. Please login.
 
May 11, 2021, 08:18:52 PM

News:

Welcome to the SQLitening support forums!


Setting Up The Error Logging Callback

Started by Jean-Pierre LEROY, April 08, 2021, 05:39:53 PM

Previous topic - Next topic

Jean-Pierre LEROY

Dear all,

Is-it possible to setup the error logging Callback provided by SQLite when we use SQLitening ?

More info here:

https://www.sqlite.org/errlog.html

Thanks,
Jean-Pierre

cj

Have only seen callbacks with SQLite on the PowerBASIC forum:
https://forum.powerbasic.com/forum/user-to-user-discussions/powerbasic-for-windows/37810-sqlite-query-with-callback
https://forum.powerbasic.com/forum/user-to-user-discussions/source-code/37809-very-simple-sqlite-3-5-7-e-g-with-callback#post438764

I just modify the log code on the SQLitening server and use a separate filewatcher program to monitor the SQliteningServer.log.
It is cool to see messages pop-up when people access the server or just make a sound.
Discussion of filewatcher https://forum.powerbasic.com/forum/user-to-user-discussions/programming/52280-filewatcher-discussion?t=50986
Another method might be to use SQLiteningServerMonitor.bas  (see in \src folder.)


For any lurkers, SQLitening returns error messages for the helper functions which can be automatically displayed or handled by the caller at any time.