I am writing a server in PHP where I want to log all database queries in a file. Now, I am using SQLite3Stmt::bindParam and SQLite3::prepare which returns a SQLite3Stmt object. How do I convert the SQLite3Stmt object to a query string so that I can log it?
I am using KLogger for logging.
I am writing a server in PHP where I want to log all database
Share
I could not find a way to do it, so I ended up logging all parameters individually.