使用日志功能,如this, 这样它就可以将您的日志写出来进行调试。通过配置wp配置来登录。php,我发现here:
/**
* This will log all errors notices and warnings to a file called debug.log in
* wp-content (if Apache does not have write permission, you may need to create
* the file first and set the appropriate permissions (i.e. use 666) )
*/
define(\'WP_DEBUG\', true);
define(\'WP_DEBUG_LOG\', true);
define(\'WP_DEBUG_DISPLAY\', false);
@ini_set(\'display_errors\',0);
这至少可以用于调试/开发目的(我不确定这对于生产日志记录有多好,但它可以用于开发。)