PHP CLI won't log errors

前端 未结 6 1152
情书的邮戳
情书的邮戳 2020-12-13 06:23

PHP currently will not log errors produced from the command line.

I have :

log_errors = On
error_log = /var/log/php_errors.log

in

6条回答
  •  臣服心动
    2020-12-13 06:38

    in PHP file

    error_log("You messed up!", 3, "/var/tmp/my-errors.log");
    

    in terminal

    tail -f /var/tmp/my-errors.log
    

    output You messed up!

提交回复
热议问题