Welcome Guest, Not a member yet? Register   Sign In
logging
#1

[eluser]Treeda[/eluser]
Hi all,

is there a way to disable the logfile flooding with php notice msgs?

e.g.
ERROR - 2009-04-18 18:22:20 --> Severity: Notice --> Undefined index: total /home/websites/...

i know i could get rid of them but i don't see a reason why (each access to a $foo["total"] causes that), so is there anything i can suppress them written to the logfile?

I set the reporting in the index.php to:
error_reporting(E_ALL ^ E_NOTICE);

logging threshold in the config is set to 1 for only getting really important errors :-)

regards
Treeda
#2

[eluser]pistolPete[/eluser]
I would try to remove the root of this notice, it should be as simple as that:
Code:
if(isset($foo['total'])
{
   ...
}
else
{
   ...
}
#3

[eluser]Treeda[/eluser]
yes i know, this is was i meant by saying i know how to remove them, but why?

It's a simple notice and it does no harm, why blowing up the code make it harder to read?
more to parse?
it's a notice, and i simply don't want this notices showing up in the logfile as i'm able to surpress them for the screen dump.

Is there any "offical" way of surpressig notices from being written to the logfile?




Theme © iAndrew 2016 - Forum software by © MyBB