PHP Logging error Log

Source: Internet
Author: User

In the development phase, all errors need to be displayed, and in the product phase, all errors are hidden and all errors are logged

There are two ways of recording errors as well.

In the php.ini

On//设定是否记录日志'*.log'//设定错误日志文件名,若没有给定路径,则在所有目录下生成日志文件//error_log = syslog;//将错误日志记录到系统中,windows系统下(事件查看器->windows日志->应用程序)

In the source code program

ini_set('log_errors',On);ini_set('errors_log','*.log');//ini_set('errors_log','*.txt');//ini_set('errors_log',syslog);

'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
  • '). Text (i)); }; $numbering. FadeIn (1700); }); });

    The above describes the PHP record error log, including the contents of the content, I hope that the PHP tutorial interested in a friend to help.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.