Home > Backend Development > PHP Tutorial > window下PHP5 怎么配置日志

window下PHP5 怎么配置日志

WBOY
Release: 2016-06-13 12:10:11
Original
962 people have browsed it

window下PHP5 怎样配置日志
我的开发环境是Nginx + PHP, 环境简单也很方便, 但是一直找不到PHP的日志文件, 请教一下如何生成PHP的日志文件? 

PHP版本: PHP 5.6 (5.6.3) VC11 x64 Non Thread Safe

------解决思路----------------------
貌似php本身没有日志,php运行的时候的日志只能在代码中实现,可以设置error_reporting(E_ALL);php报错的时候会显示错误,但是如果使用nginx的话nginx需要修改配置文件,如果不修改的话只能在nginx的error log中显示错误,具体可以参考这里
------解决思路----------------------
php.ini设置

error_reporting  =  E_ALL 
log_errors = On
display_errors = Off 
error_log = php_errors.log

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template