PEAR::Log & mdb2

From: Date: Sat, 20 Oct 2007 18:43:00 +0000
Subject: PEAR::Log & mdb2
Groups: php.general 
Request: Send a blank email to php-general+get-263451@lists.php.net to get a copy of this message
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: [application/x-pkcs7-signature] S/MIME Cryptographic Signature smime.p7s
« previous php.general (#263451) next »