Zend_Log in application.ini

后端 未结 4 1409
日久生厌
日久生厌 2021-01-01 02:31

is there any example how to setup an instance of zend log from application.ini? I have only found an example for logging to an file, but i want to log into an SQLITE databas

4条回答
  •  甜味超标
    2021-01-01 02:49

    This should work - I will test fully later (not at my dev machine now)

    Zend_Application_Resource_Log can setup an instance of a Zend_Log from application.ini

    resources.log.writerName = "db"
    resources.log.writerParams.db.adapter = "PDO_SQLITE"
    resources.log.writerParams.db.dbname = APPLICATION_PATH "/../db/logdb.sqlite"
    resources.log.writerParams.db.table = "log"  
    

提交回复
热议问题