PEAR::Log & mdb2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Can someone tell me what is wrong here please?

--
   define('BASE_PEAR_DSN','mysql://root:pass@localhost/db');

   if(is_includeable('Log.php')) {
       require_once('Log.php');
$logConfig = array('dsn' => BASE_PEAR_DSN); $logger = &Log::singleton('mdb2', 'log_table', 'System', $logConfig);
       if (PEAR::isError($logger)) {
           die($logger->getMessage());
       }
       $logger->log('logging an event' . PEAR_LOG_DEBUG);
   }
--

I can't see anything in log_table and i don't know what is wrong here.
Many thanks,

<<attachment: smime.p7s>>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux