Go to file
2021-03-02 15:34:11 +01:00
example allow newlines in cli output, add FirePHP handler to browser console log 2019-09-20 22:30:27 +02:00
img remove Query Status Monitor, complete implementation 2020-05-01 01:08:23 +02:00
src Merge remote-tracking branch 'remotes/origin/dev_traceInLog' 2021-03-02 15:34:11 +01:00
.gitattributes change line endings for easy patching 2020-05-25 09:48:12 +02:00
.gitignore Initial commit 2019-08-20 23:35:53 +02:00
CHANGELOG.md remove Query Status Monitor, complete implementation 2020-05-01 01:08:23 +02:00
composer.json fix non https url in composer.json 2020-06-08 10:14:56 +02:00
LICENSE Initial commit 2019-08-20 23:33:18 +02:00
README.md remove Query Status Monitor, complete implementation 2020-05-01 01:08:23 +02:00

Oxid eShop SQL Logger

Returns all SQL queries into console of a Browser.

Install

composer require --dev d3/oxid-sql-logger

Usage

Just set the function D3StartSQLLog() somewhere and from that point on all SQLs will be logged.

\D3StartSQLLog('specific log message');

$db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
$list = $db->getAll('SELECT * FROM oxarticles WHERE oxprice < ? LIMIT 100', [49.99]);

\D3StopSQLLog();

Screenshots

Browser:

Example all sqls

CLI:

Example CLI

Credits

Many thanks to Tobias Matthaiou for his inspiration.