Callback to use with ksqlite.capi.types.SqliteConfigOption.LOG.
Details on parameters can be found here.