ADOdb provides an internal debugging system that exposes the executed SQL commands, as well as other messages that can help when troubleshooting errors when, for example, trying to establish a connection to the database or an SQL statement fails.
The earliest that debugging can be started is after instantiating the driver but before connection.
Please refer to Debug Mode for details on usage.
The default logging behavior is to send all messages to STDOUT, but the behavior may be modified by either:
The overriding function must accept 2 arguments:
DEFINE ('ADODB_OUTP','myLogger'); function myLogger($msg,$discard) { print "\nThis is my messsage: $msg"; }