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

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

WBOY
Release: 2016-06-21 08:45:41
Original
1150 people have browsed it

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

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



回复讨论(解决方案)

不会!

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

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