professional-php-11-newLoggerPGSQLClassTest.php / php
<?php //steve@localhost/mydb?table=logdata'); log = Logger::getInstance('app'); if(isset(//not written to the log - the log level is too high log->logMessage('A fooid is present', LOGGER_DEBUG); //LOG_INFO is the default, so this would get printed _GET['fooid']); } else { //This will also be written and includes a module name _SERVER['HTTP_REFERER'], LOGGER_CRITICAL, "Foo Module"); throw new Exception('No foo id!'); } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.