Nginx log how to output a variable

Source: Internet
Author: User
Code is PHP, running on Nginx, part is the function of sending mail
In order to facilitate debugging, want to output a variable to see,
But do not know where to output, how to output?
Node can directly console.log (), but how does the PHP output on Nginx?
Online said to change the log format, also useful echo?
Not very clear, can be directly echo? So where's the output?
Would you please give us a hint

Reply content:

Code is PHP, running on Nginx, part is the function of sending mail
In order to facilitate debugging, want to output a variable to see,
But do not know where to output, how to output?
Node can directly console.log (), but how does the PHP output on Nginx?
Online said to change the log format, also useful echo?
Not very clear, can be directly echo? So where's the output?
Would you please give us a hint

Nginx logging is not the use of PHP to output, you should be to modify the nginx/conf/ngnix.conf file
Change the format after Log_format, different parameters corresponding to different values you can look at the

  • 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.