Home > Backend Development > PHP Tutorial > thinkphp怎么在日志中记录post和return内容?

thinkphp怎么在日志中记录post和return内容?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:31:03
Original
1552 people have browsed it

请问各位大神。thinkphp怎么在日志中记录接收到的POST的内容以及对应的return的内容?

回复内容:

请问各位大神。thinkphp怎么在日志中记录接收到的POST的内容以及对应的return的内容?

已解决 自己把POST的内容 file put进日志文件就可以了 不过记录return的话 一定要在return前

3.1以前:
记录日志方式:Log::record('测试调试错误信息', Log::DEBUG);
官方文档地址:http://doc.thinkphp.cn/manual/log_record.html

3.2:
记录日志方式:\Think\Log::record('测试日志信息');
官方文档地址:http://document.thinkphp.cn/manual_3_2.html#log

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template