I
I
Ilya Pavlov2015-10-24 20:56:52
PHP
Ilya Pavlov, 2015-10-24 20:56:52

How to save PHP errors in log?

How can I include PHP error output in a log file located in the same directory as the file where the error occurred? Or all errors in one broad gull?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
index0h, 2015-10-24
@index0h

https://github.com/Seldaek/monolog
Very bad idea

D
Dim Boy, 2015-10-24
@twix007

ErrorLog /home/www/host.com/error.log
This is the maximum.

M
Max, 2015-10-25
@MaxDukov

error_handler - write your own error handler. And do what you want with them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question