Issue Bug Closed

#95927scheduler task (TestTask) is not logging /creating log entries when executed (v10 and v11)

Marco H 11/09/21, 19:29 updated 11/10/21, 23:20

Description

I’ve had this issue in TYPO3 10.4 and 11.5

The Test Task (sysext\scheduler\Classes\Example\TestTask.php) in scheduler sends an email, it should also create a log entry while doing so:

10.4
@$this->logger->info(‘[TYPO3\\CMS\\Scheduler\\Example\\TestTask]: Test email sent to “’ . $this->email . ‘”’);@

11.5
@$this->logger->info(‘[TYPO3\\CMS\\Scheduler\\Example\\TestTask]: Test email sent to “{email}”’, [‘email’ => $this->email]);@

However, the backend log module doesn’t show this log entry.

The log is working, it shows logs like “Scheduler task “Scheduler test task” (UID: 1, Class: “TYPO3\CMS\Scheduler\Example\TestTask”) was added” or “User xxx logged in from 0.0.0.0”

Am I missing something?

Reviews 0

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