最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugin development - How do I specify where to save the debug.log?

programmeradmin2浏览0评论

According to the documentation cited below I should be able to add a path to save the debug.log at but it does not seem to be working for me.

define( 'WP_DEBUG_LOG', '/tmp/wp-errors.log' );

in wp-config.php I have:

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', '/tmp/wp-errors.log' );
define( 'WP_DEBUG_DISPLAY', false );

The log keeps saving to the default location instead. Any help as too why this would not behave as expected is appreciated.

Running WP Version 5.0.8 With WordFence installed

发布评论

评论列表(0)

  1. 暂无评论