#105123Provide LogWriter for sending emails
Description
It would be great to have a LogWriter which allows sending emails from the Logging Framework.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 5
-
Stefan Neufeind commented <span data-processor="relativetime" data-value="2024-09-25T15:21:10+00:00" > 09/25/24, 15:21 </span>
-
Garvin Hicking commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2024-09-25T16:13:43+00:00" > 09/25/24, 16:13 </span>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?
-
Stefan Neufeind commented <span data-processor="relativetime" data-value="2024-09-25T16:20:55+00:00" > 09/25/24, 16:20 </span>
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.
-
Garvin Hicking commented <span data-processor="relativetime" data-value="2024-09-25T16:28:56+00:00" > 09/25/24, 16:28 </span>
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…?
-
Stefan Neufeind commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2024-09-25T23:54:22+00:00" > 09/25/24, 23:54 </span>Agreed, let’s close it for now and improve with the mentioned logging-initiative.
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), …