Logging With PHP - Closing Time (
Page 9 of 9 )
And that's about it for the moment. In this article, I offered you a brief
overview of logging in PHP, demonstrating how you can use built-in functions,
off-the-shelf libraries or your own code to easily and efficiently create logs
of the activity taking place in your application. I demonstrated logging to a
file, to a database, to an email address and to the console, and wrapped things
up with a couple of simple examples that demonstrated how logs could be built
and analyzed in a real-world application.
I hope you enjoyed reading this
article as much as I enjoyed writing it. If you'd like to know more about the
topics discussed in the previous pages, here are some links you should
bookmark:
PHP file manipulation functions, at
http://www.php.net/manual/en/ref.filesystem.phpPHP
mail functions, at
http://www.php.net/manual/en/ref.mail.phpPHP
MySQL functions, at
http://www.php.net/manual/en/ref.mysql.phpPHP
error logging functions, at
http://www.php.net/manual/en/ref.errorfunc.phpThe
PHP Log class, at
http://pear.php.net/package-info.php?package=LogPEAR,
at
http://pear.php.netTill next
time...stay healthy!
Note: All examples in this article have been tested
on Linux/i586 with PHP 4.2.3. Examples are illustrative only, and are not meant
for a production environment. Melonfire provides no warranties or support for
the source code described in this article. YMMV!