Bug #51507
closedUse logging framework in DatabaseConnection
Added by Sascha Egerer about 11 years ago. Updated over 4 years ago.
0%
Description
Currently the logging in DatabaseConnection is not really clean and complete.
DatabaseConnection should use the logging framework to log executed Queries and SQL errors.
Updated by Philipp Gampe about 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
6.2.0) - Complexity set to medium
A good idea and a nice and isolated way to start the integration of the logging framework.
Can you create a first patch and upload it to gerrit? http://wiki.typo3.org/CWT
Updated by Gerrit Code Review about 11 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 9 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 10 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 11 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 12 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 13 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 14 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review about 11 years ago
Patch set 15 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review over 10 years ago
Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review over 10 years ago
Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Sascha Egerer over 10 years ago
- Is Regression set to No
Example logging framework configuration.
Put this into you AdditionalConfiguration.php
. But do this never ever on any production system!
$GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['Core']['Database'] = array( 'writerConfiguration' => array( \TYPO3\CMS\Core\Log\LogLevel::DEBUG => array( 'TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter' => array( // configuration for the writer 'logFile' => 'typo3temp/logs/databaseQueries.log' ) ), ) );
Updated by Gerrit Code Review over 10 years ago
Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review over 10 years ago
Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review over 10 years ago
Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/23462
Updated by Gerrit Code Review over 10 years ago
Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review over 10 years ago
Patch set 22 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review about 10 years ago
Patch set 23 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review about 10 years ago
Patch set 24 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review about 10 years ago
Patch set 25 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review almost 10 years ago
Patch set 26 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review almost 10 years ago
Patch set 27 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review almost 10 years ago
Patch set 28 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review over 9 years ago
Patch set 29 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Gerrit Code Review over 9 years ago
Patch set 30 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/23462
Updated by Christian Kuhn over 9 years ago
- Status changed from Under Review to On Hold
patch abandoned, solution "on hold" until logging decisions have been taken.
Updated by Benni Mack about 7 years ago
- Status changed from On Hold to Accepted
- Target version set to 9 LTS
Now that we streamlined logging in most places in the core, Logging could be added to Doctrine DBAL
Updated by Susanne Moog about 6 years ago
- Target version changed from 9 LTS to Candidate for patchlevel
Updated by Susanne Moog over 4 years ago
- Status changed from Accepted to Closed
Fortunately, adding logging to doctrine is not our job and has in fact been done for us by the doctrine people. It's what the admin panel already uses to display all SQL queries.
Basically, if you need it (mind the performance impact):
$connection = $this->connectionPool->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME); $connection->getConfiguration()->setSQLLogger(GeneralUtility::makeInstance(SQLLogger::class));