A
A
Alexander Vladimirovich2015-09-24 14:35:42
linux
Alexander Vladimirovich, 2015-09-24 14:35:42

How to send PHP error logs to email?

Hello!
How to make regular linux (debian) tools so that each entry that is written in php_errors.log is duplicated by an email?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-09-24
Protko @Fesor

syslog+bash

A
Alexander Urich, 2015-09-25
@Urichalex

php.net/manual/en/function.set-error-handler.php
Catch errors and do whatever you want with them

K
Konstantin, 2015-09-26
@unity_ultra_hardcore

I'll offer a slightly more generic solution: use Sentry .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question