Forum Moderators: mack

Message Too Old, No Replies

Why error log in PHP is disabled as default?

         

bernellthom

7:51 am on Sep 10, 2021 (gmt 0)



Hello everyone,

I was not much of a PHP fan, because I've been using and creating websites on WordPress (the beloved drag and drop drama). When practicing on PHP, I learned about the php error logging and noticed that by default, the error log in PHP is disabled and you can enable the error log in one of two ways: by editing php. ini or by using ini_set. Fortunately, I found an article that helps me in enabling PHP error logging. I'm just curious to know that why on the initial stage they haven't build-up the criteria to be enabled before, I mean it will be good if the default function is enabled during the PHP error logging stuff.

RoLuck

9:54 am on Nov 17, 2021 (gmt 0)



so that you can manually set the error logs which you wanna see from the following
E_ALL—Logs all errors and warnings
E_ERROR—Logs fatal runtime errors
E_WARNING—Logs non-fatal runtime errors
E_NOTICE—Logs runtime notices (typical bugs in code)

tangor

6:20 am on Nov 19, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Most WP users (php) don't know what logs are ... and if activated might just eat up storage space for something that is never used?