AI助手支持GPT4.0
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.
非常适合调试那些冗长而复杂的脚本。 p>
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.
您还可以记录一些不太严重的问题的通知。 p>
All your errors and notices can be viewed conveniently in the WordPress admin area.
您所有的错误和通知都可以在WordPress管理区域中方便地查看。 p>
ul>
Install and activate the plugin then in the admin menu go to Tools > Error Log.
安装并激活插件,然后在管理菜单中进入工具>错误日志 em>。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.这最终将是显示所有最新错误的页面,但是,如果您刚刚入门,它会详细说明如何开始记录自定义错误。 p>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); code>或通知 log_notice($ message); code>。 p>>When these functions are executed they will log whatever error or notice you want.执行这些功能时,它们将记录您想要的任何错误或通知。 p>Ongoing Development:正在进行的开发: h3>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.如果您有任何想法,请在支持部分中提出建议。 p>Translation:翻译: h3>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.如果您想提供任何翻译,我将不胜感激。 p>Please note:请注意: h3>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.你。 p>
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.
这最终将是显示所有最新错误的页面,但是,如果您刚刚入门,它会详细说明如何开始记录自定义错误。 p>
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);
在您的主题中,使用这两个内置函数之一记录错误 log_error($ message); code>或通知 log_notice($ message); code>。 p>>When these functions are executed they will log whatever error or notice you want.执行这些功能时,它们将记录您想要的任何错误或通知。 p>Ongoing Development:正在进行的开发: h3>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.如果您有任何想法,请在支持部分中提出建议。 p>Translation:翻译: h3>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.如果您想提供任何翻译,我将不胜感激。 p>Please note:请注意: h3>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.你。 p>
log_error($ message); code>或通知 log_notice($ message); code>。 p>>When these functions are executed they will log whatever error or notice you want.执行这些功能时,它们将记录您想要的任何错误或通知。 p>Ongoing Development:正在进行的开发: h3>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.如果您有任何想法,请在支持部分中提出建议。 p>Translation:翻译: h3>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.如果您想提供任何翻译,我将不胜感激。 p>Please note:请注意: h3>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.你。 p>
log_notice($ message); code>。 p>>When these functions are executed they will log whatever error or notice you want.执行这些功能时,它们将记录您想要的任何错误或通知。 p>Ongoing Development:正在进行的开发: h3>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.如果您有任何想法,请在支持部分中提出建议。 p>Translation:翻译: h3>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.如果您想提供任何翻译,我将不胜感激。 p>Please note:请注意: h3>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.你。 p>
p>
>
When these functions are executed they will log whatever error or notice you want.
执行这些功能时,它们将记录您想要的任何错误或通知。 p>
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.
如果您有任何想法,请在支持部分中提出建议。 p>
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.
如果您想提供任何翻译,我将不胜感激。 p>
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.
你。 p>
Custom Error Log
/wp-content/plugins/
自定义错误日志 code>上传到 / wp-content / plugins / code>目录。 li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>Place the function log_error($message); in your theme where you would like to log an error.将函数 log_error($ message); code>放在您想要记录错误的主题中。 li>
/ wp-content / plugins / code>目录。 li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>Place the function log_error($message); in your theme where you would like to log an error.将函数 log_error($ message); code>放在您想要记录错误的主题中。 li>
log_error($ message); code>放在您想要记录错误的主题中。 li>
ol>
Once the plugin is installed and activated you can find more detailed instructions under Tools > Error Log in the WordPress admin menu.
安装并激活插件后,您可以在WordPress管理菜单的工具>错误日志 em>下找到更详细的说明。 p>
原文出处:http://www.sanshu.cn/a/9519.html
群主管理都是支付大佬