错误处理try catch 默认是否会把异常信息记录到阿帕奇日志里

WBOY
Release: 2016-06-13 12:15:46
Original
1402 people have browsed it

异常处理try catch 默认是否会把错误信息记录到阿帕奇日志里?

请问 try catch 是否把异常内容写到阿帕奇错误日志里?
还是自己手动file_put_contents();

如果在IIS下,  try catch 和 错误处理 是否会自动记录?



------解决思路----------------------
不会!

异常处理整合了常用的错误处理,目的是在于:即使程序出现了错误,也可以让程序正常的运行下去
如果程序出现错误,就报个错退出,那就没有意义了

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template