Php error tracking

I use php and mysql for my pear package projects.

I want to track errors in my programs.

is there any way to track the error in the pear or php5 package.

Suppose any error or warning is generated in my program, so I want to track this error and

store in the database.

anyone has an idea about this.

early.

+3
source share
5 answers

Do not store errors in the database. many errors are related to the database. what would you do with it?

PHP , . log_errors ini , , error_log, PHP -

trigger_error(), ,

mysql_error($sql);
if(!$sql) trigger_error(mysql_error()." in ".$sql);
+6

, , .

: , , , . . , , , .

:

  • , .

Exceptiontrap PHP-, .

+1

, xdebug. .

, , Zend_Log, . , .

, Firebug Firephp. print_r .

0

Sentry. Python, PHP. , , , , / .

0

, , API , Exceptiontrap, Sentry, Raygun, Airbrake , , , FirePHP,

0

Source: https://habr.com/ru/post/1749185/


All Articles