Project

General

Profile

Actions

Feature #105123

closed

Provide LogWriter for sending emails

Added by Stefan Neufeind about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Logging
Target version:
-
Start date:
2024-09-25
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

It would be great to have a LogWriter which allows sending emails from the Logging Framework.

Actions #1

Updated by Stefan Neufeind about 2 months ago

If you wish I can provide a basic EmailWriter. We would need to decide if/how we want to introduce templating or not (adding flexibility or avoiding complexity), ...

Actions #2

Updated by Garvin Hicking about 2 months ago

  • Status changed from New to Needs Feedback

I would suggest not to create synchronous mail logging. This can spiral out of control in case of many errors.

I recommend to write a messenger bus interface to a logfile watch process, or dedicated tools that can watch a logfile and send aggregated mails. Or a scheduler/cli command that watches these files.

Also I think after https://talk.typo3.org/t/improve-typo3-error-log/5223/12 there was an extension dedicated to this?

Actions #3

Updated by Stefan Neufeind about 2 months ago

Good points. I wasn't aware of that initiative for logging improvement. If that path could be followed that would surely be a better solution in the long run.

Actions #4

Updated by Garvin Hicking about 2 months ago

Found it: https://typo3.org/article/introducing-the-advanced-error-log-extension

Would you be okay with closing it here, because I think that initative would probably better suited than in the core currently...?

Actions #5

Updated by Stefan Neufeind about 2 months ago

  • Status changed from Needs Feedback to Closed

Agreed, let's close it for now and improve with the mentioned logging-initiative.

Actions

Also available in: Atom PDF