Added some tips & tricks.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325229 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2012-04-16 14:19:15 +00:00
parent f36e4bc6ce
commit aa68c1cdff

View file

@ -13,8 +13,13 @@
&reftitle.intro;
<para>
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.
</para>
<para>
Logging is turned off, by default. This class allows you to turn on