开发者

How to block php errors to be logged in codeigniter

开发者 https://www.devze.com 2023-04-09 04:07 出处:网络
How to block 开发者_运维问答the php errors like Severity: Notice —> Undefined variable to be get logged in codeigniter , even by keeping the log threshold level at 3 at config settings.

How to block 开发者_运维问答the php errors like Severity: Notice —> Undefined variable

to be get logged in codeigniter , even by keeping the log threshold level at 3 at config settings.

this scenario occurs due to that all variables are not getting used each and every time.

thanks in advance


error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE & ~E_DEPRECATED);

This will suppress all warnings, notice and deprecated(if using php 5.3) messages.

0

精彩评论

暂无评论...
验证码 换一张
取 消