Jump to content

Improving error system


wepnop

Recommended Posts

I created my own error function. It uses error codes (numeric or strings) to identify the error type in a case. It can have internal and external text and can have some grades of alarm, so it will take the ip of the user if its necessary. Also saves in two error log archives.

 

The system is fine but im thinking about a idea i have seen before: saving all the errors in a array and having a function that check for error count and other that prints all the errors.

 

Why this way is better?

 

Link to comment
https://forums.phpfreaks.com/topic/227723-improving-error-system/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.