Is there a built-in debugging log in PHP, such as Ruby on Rails logger.info (), in the development.log file?

Is there a built-in debugging log in PHP, such as Ruby on Rails logger.info (), in the development.log file?

With PHP, I would like to look "under the hood" to find out what happens ... pages, query strings, etc.

I have a bunch, but I can not find anything.

(I am trying to port a web application from RoR to PHP because I need more execution speed.)

0
source share
1 answer

PHP has

  • error_log - sends an error message to the web server error log, TCP port, or to a file and
  • trigger_error - generates an error / warning / notification message at the user level

which you can use to run and register predefined error types , for example

trigger_error( "Custom Warning", E_USER_WARNING );

Third-party libraries exist with

. OO:

$logger->log('Informational message', Zend_Log::INFO);

Log4J

, XDebug Zend Debugger. PECL Advanced PHP Debugger (APD)

+7

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


All Articles