php error log refactor

This commit is contained in:
mercury
2023-04-23 13:02:20 +04:00
parent 5683100b07
commit b0d321061d
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
<?php
error_reporting(E_ERROR);
// ini_set('display_errors', 'On');
ini_set("log_errors", 1);
ini_set("error_log", '/logs/php_error');
// ini_set("log_errors", 1);
// ini_set("error_log", '/logs/php_error');
$debug = [
'raw' => file_get_contents('php://input'),
+2 -2
View File
@@ -483,7 +483,7 @@ memory_limit = 128M
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; https://php.net/error-reporting
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
error_reporting = E_ERROR
; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
@@ -587,7 +587,7 @@ report_memleaks = On
; empty.
; https://php.net/error-log
; Example:
;error_log = php_errors.log
error_log = /logs/php_error
; Log errors to syslog (Event Log on Windows).
;error_log = syslog