I did get it working. Here's the code I used:
Code:
// Set up the logging system and put it in the Zend Registry.
$columnMapping = array('priority' => 'priority', 'message' => 'message',
'timestamp' => 'timestamp', 'username' => 'user',
'address' => 'address');
$writer = new Zend_Log_Writer_Db($DB, 'log', $columnMapping);
HTH,
Socceroos