In the past I usually did this:

  public static function setupDatabase()
    {
        $config = self::$registry->configuration;
        $db = Zend_Db::factory($config->db->adapter,
$config->db->toArray());
        $db->query("SET NAMES 'utf8'");
        self::$registry->database = $db;
        Zend_Db_Table::setDefaultAdapter($db);
        // Logger
        $columnMapping = array('lvl' => 'priority', 'msg' => 'message');
        $writer = new Zend_Log_Writer_Db($db, 'log', $columnMapping);
        $logger = new Zend_Log($writer);
        self::$registry->logger = $logger;
    }

I setup my Webhosting server to allow Zend_Tool and such. Now I have the
Zend_application Bootstrap class.   So how do I add an application wide
logger like above

Thx for any help

Eric
-- 
View this message in context: 
http://www.nabble.com/Zend_Application_Bootstrap_Bootstrap--and-Zend_Log-tp23915940p23915940.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to