Task #104477
openRemove the hyphen as prefix for log context data in the DatabaseWriter
0%
Description
According to PSR-3, additional "context" data can be logged as an array, which is converted to json by the DatabaseWriter.
The DatabaseWriter adds a "-" prefix to each json string that is persisted.
The same thing happens in the FileWriter for better log parsing (I think?), but it doesn't make sense in the DatabaseWriter because the context data is persisted in a separate column.
I suggest removing the hyphen from line 82. It will then be easier to interpolate the context data in custom "logviewer" applications.
https://github.com/TYPO3/typo3/blob/12.4/typo3/sysext/core/Classes/Log/Writer/DatabaseWriter.php
Updated by Gerrit Code Review 6 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85387
Updated by Mathias Brodala 6 months ago
- Related to Bug #65577: Logging API does not cope with Exceptions properly added
Updated by Gerrit Code Review 6 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85387
Updated by Gerrit Code Review 6 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85387
Updated by Gerrit Code Review 3 months ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85387