简体   繁体   English

php error_log()不能将所有错误写入指定的文件

[英]php error_log() not writing all errors to specified file

I am using error_log() to write errors/logs to a specific file in my application. 我正在使用error_log()将错误/日志写入应用程序中的特定文件。 I have seen a few occurrences where entries in logs are missing. 我已经看到一些日志中的条目丢失的情况。 Is this a known issue when we are doing excessive logging using error_log() function?? 当我们使用error_log()函数进行过多日志记录时,这是一个已知问题吗?

  1. Open php.ini 打开php.ini
  2. find error log . 查找error log

If you want that errors should be logged in the same directory then, 如果您希望将错误记录在同一目录中,

error_log = error_log

else if you want it to be stored to a single file then, 否则,如果您希望将其存储到单个文件中,

error_log = /path/to/errorlog

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM