簡體   English   中英

是否可以將php.ini設置為使用多個錯誤日志?

[英]Is it possible to set php.ini to use multiple error logs?

我當前的php.ini讀取:error_log = error_log

它很好,它將所有腳本的錯誤記錄到單獨的文件中,具體取決於它們所在的文件夾。所以它給出了這樣的結果:

public_html/error_log
public_html/folder1/error_log
public_html/folder2/error_log

但除此之外,是否還可以將其登錄到一個通用的error_log? 如下?

public_html/general_error_log_for_all_folders
public_html/error_log
public_html/folder1/error_log
public_html/folder2/error_log
error_log = /absolute/path/to/error_log

如果要為某些應用程序設置不同的錯誤日志,請使用運行時配置,例如.htaccess

php_value error_log = /absolute/path/to/public_html/certain/app/error_log

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM