Bug #95927

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

Added by Marco H 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
-- undefined --
Assignee:
-
Category:
scheduler
Target version:
Start date:
2021-11-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
scheduler log logging
Complexity:
Is Regression:
Sprint Focus:

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?

Also available in: Atom PDF