Issue Feature Closed

#90323Make it possible to turn off sys_log logging entirely?

Sybille Peters 02/04/20, 18:54 updated 10/06/26, 20:07

Description

I have been going through the logs. It bugs me that logs are written in several places. I am trying to streamline this on my site. I want to use the Logging Framework only and no longer log to sys_log database tables.

1) Should this be possible by design?

2) It is currently not entirely possible because the AbstractExceptionHandler writes to sys_log (writeLog()) and logging framework. The logging framework log is configurable, the other not. (While you can override this, it seems awkward to have to override the default logging in order to be able configure the logging.)
For the error handler you can configure it with belogErrorReporting

3) … maybe other places which I have not checked yet log to sys_log

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Sybille Peters commented <span data-processor="relativetime" data-value="2024-11-30T11:03:20+00:00" > 11/30/24, 11:03 </span>

    Checked for version v14 main: Is still there:

    typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php:

    140 $this->writeLog($logTitle . ‘: ‘ . $logMessage);

    in writeLogEntries. Has a comment:

    // Legacy logger.  Remove this section eventually.
  2. Markus Klein commented <span data-processor="relativetime" data-value="2024-12-05T16:46:37+00:00" > 12/05/24, 16:46 </span>

    I’m not sure if I remember correctly, but I think I saw some implementation, presented some-when in 2024, where the belog module was “pimped” to read the log files and to replace the DB logging. Unfortunately, I don’t remember any details.

    Maybe it was this: https://github.com/raccoondepot/error_log

  3. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-10-06T20:07:55+00:00" > 10/06/26, 20:07 </span>

    hey,

    thanks for the idea. this is an essential feature and currently there are no plans to change that.
    of course you can always patch/change the core yourself or use a custom command to remove entries but nothing is planned in the core.

    closing the issue, hope this is ok for you