From 95d1393b6c210655cc1c980ba976b14e62402977 Mon Sep 17 00:00:00 2001 From: Claudio Zizza Date: Thu, 24 Oct 2019 22:58:37 +0200 Subject: [PATCH] Remove outdated logging chapter for odm 2.x --- docs/en/reference/logging.rst | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 docs/en/reference/logging.rst diff --git a/docs/en/reference/logging.rst b/docs/en/reference/logging.rst deleted file mode 100644 index d6c4d78c4d..0000000000 --- a/docs/en/reference/logging.rst +++ /dev/null @@ -1,31 +0,0 @@ -Logging -======= - -If you want to turn on logging and receive information about -queries made to the database you can do so on your -``Doctrine\ODM\MongoDB\Configuration`` instance: - -.. code-block:: php - - setLoggerCallable(function(array $log) { - print_r($log); - }); - -You can register any PHP callable and it will be notified with a -single argument that is an array of information about the query -being sent to the database. - -Just like the anonymous function above, you could pass an array -with a object instance and a method to call: - -.. code-block:: php - - setLoggerCallable([$obj, 'method']); \ No newline at end of file