[wordpress插件] Debug Log调试日志

wordpress 插件 文章 2020-04-14 06:21 865 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

If the log is long, the latest lines are show at the top to avoid scrolling.

如果日志很长,则最新行会显示在顶部,以避免滚动。

Line numbers are shown for reference.

显示行号以供参考。

Logs over 5MB do not load until you confirm you are sure, or you can opt to delete the log and start afresh.

超过5MB的日志将不会加载,除非您确定要确定,或者您可以选择删除日志并重新开始。

Only admins can view (or anyone you give the capability “manage_options”).

只有管理员可以查看(或任何具有“ manage_options”功能的人)。

Debug Log only works if it’s enabled in wp-config.php.

Debug Log仅在wp-config.php中启用时有效。

See https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG_LOG

参见https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG_LOG

Recommended configuration:

推荐的配置:

define( 'WP_DEBUG', true );// just toggle this line to false to turn off

  define('WP_DEBUG',true); //只需将此行切换为false即可关闭

if ( WP_DEBUG ) {    

如果(WP_DEBUG){    

define( 'WP_DEBUG_LOG', true );    

define('WP_DEBUG_LOG',true);    

define( 'WP_DEBUG_DISPLAY', false );    

define('WP_DEBUG_DISPLAY',false);    

@ini_set( 'display_errors', 0 );

@ini_set('display_errors',0);

}

}

安装步骤

    1. Install as you would any plugin.
    2. 像安装任何插件一样安装。

下载地址
https://downloads.wordpress.org/plugin/debug-log.0.3.zip
-EOF-

AI助手支持GPT4.0