How does an nginx log output a variable?

Source: Internet
Author: User
The code is php and runs on nginx. one part of the code is the Mail function. to facilitate debugging, I want to output a variable, but I don't know where to output it. how can I output it? Node can directly console. log (), but how does php output on nginx? On the Internet, the logformat is changed, and the echo... code is php and runs on nginx. some of them use the mail function.
To facilitate debugging and output a variable,
But I don't know where to output it. how can I output it?
Node can directly console. log (), but how does php output on nginx?
Log format is changed on the internet. is echo used?
I don't quite understand. Is it possible to directly echo? Where is the output?
Please give us some advice,

Reply content:

The code is php and runs on nginx. part of the code is the Mail function.
To facilitate debugging and output a variable,
But I don't know where to output it. how can I output it?
Node can directly console. log (), but how does php output on nginx?
Log format is changed on the internet. is echo used?
I don't quite understand. Is it possible to directly echo? Where is the output?
Please give us some advice,

If nginx logs are not output using php, you should modify the nginx/conf/ngnix. conf file.
Change the format after log_format. you can see that different parameters correspond to different values.

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.