我試圖在我正在構建的自定義Wordpress插件中使用error_log()
,但由於某種原因,我不能。如何在Wordpress中使用error_log()?
當我使用error_log()
我的網站剛剛打破,但我在debug.log
沒有看到任何錯誤。
我在wp_config.php
文件設置調試這樣的:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
Stranegly,如果我在主題使用error_log()
,該網站不破,但沒有什麼是輸出到debug.log
無論是。
我需要做什麼才能在我的Wordpress插件和主題中使用error_log()
?
我使用Wordpress 3.9.1。