Name

sqlite3_log() — Log a message in the SQLite logfile [EXP]

Definition

void sqlite3_log( int errcode, const char* format, ... );
errcode

The error code associated with this log message.

format

A sqlite3_snprintf() style message formatting string.

Additional parameters

Message formatting parameters.

Description

This function logs a message in the SQLite logfile. The format and additional parameters will be passed to an sqlite3_snprintf() like function for formatting. Messages are limited to a few hundred characters. Longer messages will be truncated.

The sqlite3_log() function was designed to be used by extensions that do not have a normal debug or error reporting path. Normally, SQLite has no logfile and the message is simply ignored. A logfile may be configured using sqlite3_config().

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.