I highly suspect I’m being stupid here, but how would I go about logging all SQL queries. We’re about to launch a site, and whilst it’s in a closed beta I’d like to log everything to make it easier to debug the feedback we’re getting from customers, but I can’t figure a way to do it? I’m sure it’s something trivial.
Aye . We’re using MariaDB and I don’t really want to turn something like the general_log for this, it also makes debugging harder as you can’t see the application logging / database logs in the same file.