professional-php-11-newLoggerClassTest.php / php
<?php Logger::register('errors', 'file:var/log/error.log');
Logger::register('app, 'pgsql://postgres@db/errors?table=applog×tamp=dtlog&' . 'msg=smesg&level=slevel&module=smod'); sql = "SELECT * FROM foo"; sql); } catch (DBQueryException objErrLog = Logger::getInstance('errors'); e->getMessage(), LOGGER_CRITICAL); } ?>
(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.