[FEATURE] Add SQL Logging to AdminPanel 89/57889/12
authorSusanne Moog <susanne.moog@typo3.org>
Tue, 7 Aug 2018 19:15:34 +0000 (21:15 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 23 Aug 2018 11:13:04 +0000 (13:13 +0200)
commitd1b9ef98978dc52f033bf7a911f1e6d1b5cdfaa0
tree995e794b4b182143c6be55a6144fe5dbadb99b07
parent7df267c885f4e7f065c36423faebf761d4194cff
[FEATURE] Add SQL Logging to AdminPanel

To better debug websites SQL logging has been added to the admin panel.
SQL queries will be logged whenever the admin panel is installed and
activated for the current user and request.

Queries using query parameters are displayed with all occuring parameter
values (grouped by the main query). To find where queries came from a
short backtrace has additionally been added to the query logging.

The logging itself has been implemented using the doctrine query
logging functionality.

Resolves: #84609
Releases: master
Change-Id: I84eebc8a23d6fa15c20dc48781409d4ab03f1bb1
Reviewed-on: https://review.typo3.org/57889
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: Willi Wehmeier <wwwehmeier@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
19 files changed:
Build/Resources/Public/Sass/adminpanel.scss
typo3/sysext/adminpanel/Classes/Controller/MainController.php
typo3/sysext/adminpanel/Classes/Hooks/RenderHook.php
typo3/sysext/adminpanel/Classes/Log/DoctrineSqlLogger.php [new file with mode: 0644]
typo3/sysext/adminpanel/Classes/Log/InMemoryLogWriter.php
typo3/sysext/adminpanel/Classes/Middleware/AdminPanelInitiator.php
typo3/sysext/adminpanel/Classes/Middleware/SqlLogging.php [new file with mode: 0644]
typo3/sysext/adminpanel/Classes/Modules/Debug/QueryInformation.php [new file with mode: 0644]
typo3/sysext/adminpanel/Classes/Utility/MemoryUtility.php [new file with mode: 0644]
typo3/sysext/adminpanel/Classes/Utility/StateUtility.php [new file with mode: 0644]
typo3/sysext/adminpanel/Configuration/RequestMiddlewares.php
typo3/sysext/adminpanel/Resources/Private/Language/locallang.xlf
typo3/sysext/adminpanel/Resources/Private/Language/locallang_debug.xlf
typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Debug/QueryInformation.html [new file with mode: 0644]
typo3/sysext/adminpanel/Resources/Public/Css/adminpanel.css
typo3/sysext/adminpanel/Resources/Public/JavaScript/AdminPanel.js
typo3/sysext/adminpanel/Tests/Unit/Utility/StateUtilityTest.php [new file with mode: 0644]
typo3/sysext/adminpanel/ext_localconf.php
typo3/sysext/core/Documentation/Changelog/master/Feature-84609-AddSQLLogModuleToAdminPanel.rst [new file with mode: 0644]