From aa68c1cdff4813269064d0a3535a11e29f57b38a Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 16 Apr 2012 14:19:15 +0000 Subject: [PATCH] Added some tips & tricks. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325229 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongolog.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reference/mongo/mongolog.xml b/reference/mongo/mongolog.xml index 34ae363c01..b6205ec48a 100644 --- a/reference/mongo/mongolog.xml +++ b/reference/mongo/mongolog.xml @@ -13,8 +13,13 @@ &reftitle.intro; Logging can be used to get detailed information about what the driver is - doing. With PHP-CLI, log output will be printed to stderr. Under an app - server, log messages will generally be printed to an error log. + doing. The logging mechanism as used by MongoLog emits all log messages + as a PHP notice. Depending on the server interface that you use, + that means that they will either be sent to strerr (with PHP-CLI), or + otherwise to the web server's error log. In order for log messages to + be output by PHP their level (E_NOTICE) does need to be configured to + be shown. That means the E_NOTICE bit needs to be part of PHP's + error_reporting level and that display_errors is set to 1. Logging is turned off, by default. This class allows you to turn on