当前位置: 动力学知识库 > 问答 > 编程问答 >

apache - Have PHP log dev box errors to different file?

问题描述:

Our php.ini sends all runtime errors to the same file regardless of whether it's from the dev site (which is in its own folder alongside the live site folder) or the live site, but we'd prefer not to see these mixed.

The VirtualHost for the dev site has setting ErrorLog set to a different file, and CustomLog to another different file, but PHP errors and warnings and notices are still going to the php.ini error_log file.

What are the best ways to handle this? I'm fine going by the folder name or the URL.

分享给朋友:
您可能感兴趣的文章:
随机阅读: