[wordpress插件] Custom Error Log自定义错误日志

wordpress 插件 文章 2020-04-08 00:50 449 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Custom Error Log allows you to create custom errors in your WordPress theme or plugin with a single function.

自定义错误日志允许您使用单个功能在WordPress主题或插件中创建自定义错误。

Great for debugging those long and complex scripts.

非常适合调试那些冗长而复杂的脚本。

Each error can have its own error message making it a lot easier to pin down specific issues in your code.

每个错误都可以有自己的错误消息,从而可以更轻松地确定代码中的特定问题。

You can also log notices for less serious issues.

您还可以记录一些不太严重的问题的通知。

All your errors and notices can be viewed conveniently in the WordPress admin area.

您所有的错误和通知都可以在WordPress管理区域中方便地查看。

Plugin Features:

插件功能:

    • Easy Errors: Create errors with a simple function.
    • 容易出错:使用简单功能创建错误。

    • Useful Errors: Define a custom error message for each error.
    • 有用的错误:为每个错误定义自定义错误消息。

    • Log notices: Notices can be logged for less serious issues and viewed seperately in the admin area.
    • 记录通知:可以记录不太严重的问题并在管理区域中单独查看通知。

    • Keep Track: View and moderate all your errors in the WordPress admin area.
    • 保持跟踪:在WordPress管理区域中查看和审核所有错误。

    • Toolbar icon: The admin toolbar displays how many new errors and notices have occurred on the current page.
    • 工具栏图标::管理工具栏显示当前页面上发生了多少新的错误和通知。

    Getting Started:

    入门:

    Install and activate the plugin then in the admin menu go to Tools > Error Log.

    安装并激活插件,然后在管理菜单中进入工具>错误日志

    This will eventually be the page that displays all your latest errors but if you’re just getting started it explains in detail how to start logging custom errors.

    这最终将是显示所有最新错误的页面,但是,如果您刚刚入门,它会详细说明如何开始记录自定义错误。

    In your theme use either of the two built in functions to log an error log_error($message); or a notice log_notice($message);.

    在您的主题中,使用这两个内置函数之一记录错误 log_error($ message); 或通知 log_notice($ message);

    p>

    >

    When these functions are executed they will log whatever error or notice you want.

    执行这些功能时,它们将记录您想要的任何错误或通知。

    Ongoing Development:

    正在进行的开发:

    I have only just started with this plugin and plan on bringing great improvements to it.

    我才刚刚开始使用此插件,并计划对其进行重大改进。

    If you have any ideas please suggest them in the support section.

    如果您有任何想法,请在支持部分中提出建议。

    Translation:

    翻译:

    The plugin is translation ready but as of yet contains only an English translation file.

    该插件已准备好翻译,但截至目前仅包含英文翻译文件。

    If you would like to contribute any translations I would be very grateful.

    如果您想提供任何翻译,我将不胜感激。

    Please note:

    请注意:

    This plugin is aimed at developers who have at least a basic understanding of PHP.

    此插件面向至少具有PHP基本知识的开发人员。

    If this isn't you then you may not find much use from this plugin however if you are unsure how to use any of the functions explained you can post a topic in the support section of the plugin directory and I will do my best to help

    如果不是,那么您可能无法在此插件中找到太多用处,但是,如果不确定如何使用所解释的任何功能,可以在插件目录的支持部分中发布主题,我将尽力为您提供帮助

    you.

    你。

安装步骤

    1. Upload Custom Error Log to the /wp-content/plugins/ directory.
    2. 自定义错误日志上传到 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. Place the function log_error($message); in your theme where you would like to log an error.
    6. 将函数 log_error($ message); 放在您想要记录错误的主题中。

    Once the plugin is installed and activated you can find more detailed instructions under Tools > Error Log in the WordPress admin menu.

    安装并激活插件后,您可以在WordPress管理菜单的工具>错误日志下找到更详细的说明。

下载地址
https://downloads.wordpress.org/plugin/custom-error-log.1.1.1.zip
-EOF-

AI助手支持GPT4.0