how would I deactivate TYPO3 error logging completely and switch back to apache logs?
The error log of some projects is completely clogged up with tons of errors of these kinds:
- Request parameters could not be validated (&cHash comparison failed)
- The requested page does not exist!
- The requested page alias does not exist
All of them are fruitless discovery attempts by hackers. Those error messages in their quantity don’t have any value to me and the button “delete similar errors” doesn’t work very well. Also it is impossible to delete all errors of a certain time range or other filter. I keep having to clean up the log by sql commands.
Generally it would be nice to have important error logs accessible in the TYPO3 backend, but the way it is I’d rather save the DB and file space and rely on the rotating apache logs.
How do you guys deal with this issue? Did I miss something? I already use this to suppress warnings:
$GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS'] = [ 'Core' => [ 'Resource' => [ 'ResourceStorage' => [ 'writerConfiguration' => [ \TYPO3\CMS\Core\Log\LogLevel::ERROR => [ \TYPO3\CMS\Core\Log\Writer\FileWriter::class => , \TYPO3\CMS\Core\Log\Writer\DatabaseWriter::class =>  ] ] ] ] ] ];
But it’s still far too much and I don’t seem to be able to configure just those three error types.
EDIT: TYPO3 version is 9.5