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 database table?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Good question. I can’t find a way to instantiate the
Zend_Log_Writer_Dbfrom a bootstrap config. The writer class requires aZend_Db_Adapterobject. It doesn’t accept a string.The ZF project needs to develop this use case further. They don’t even have any unit tests for
Zend_Application_Resource_Logthat include a Db writer.The best I can suggest until then is that you Bootstrap class needs to customize the Log resource in an
_initLog()method.