zend-log

How to make a global Zend_Log with Zend_Application_Bootstrap

I would like to make a global Zend_Log object that I can reach from my Controllers and my Models. What should I add to my Bootstrap? (My bootstrap extends Zend_Application_Bootstrap) How then can I reach the logger object from my controller actions and from my model? ...

How to register Zend_Log in the bootstrap of a ZF 1.8+ application?

So I want to start logging in my Zend Framework application. I want to register the logger somewhere in my bootstrap so that I can easily access it from any controller action. I think this should be a simple thing that has been done before, but how can I do this? The documentation shows something like this, but I don't want to create a ...

Zend Framework default log level

Hi Is it possible to set default log level for entire applicaton? I would like to set it from application.ini. I would like to set loggers to log to database and firephp. ...

Zend Framework -> Zend_Log via application.ini => insert() on a non-object error

I am trying to get logging via the application.ini file going and I am getting stuck with an error. resources.log.db.writerName = "Db" resources.log.db.writerParams.db.adapter = "PDO_SQLITE" resources.log.db.writerParams.db.dbname = ROOT "/data/tmp.db3" resources.log.db.writerParams.db.table = "logs" resources.log.db.writerParams.db.col...

FirePHP doesn't always write log messages

I set my loggers up in my Bootstrap.php like so: $logger = new Zend_Log(); if($environment->debug == '1') { $stream = @fopen('/var/www/html/rta/rta.log','a',false); if(!$stream){ throw new Exception('Failed to open log stream'); } $writer = new Zend_Log_Writer_Stream($stream); $logger->addWriter(...

Why Zend_Log_Writer_Firebug can't log messages from dispatchLoopShutdown plugin?

Why logs can be sent from dispatchLoopShutdown plugin as it occurs before Zend_Controller_Response_Abstract->sendResponse() and any headers haven't been sent yet ? I init logger resource in my bootstrap protected function _initLogger() { $writer = new Zend_Log_Writer_Firebug(); $logger = new Zend_Log($writer); Zend_Reg...

Is UML Class Diagram of Zend_Log correct?

Background of question Analysis of Zend_Log reveals following Class Diagram Zend_Log: uses ReflectionClass & Zend_Log_Exception maintains reference to array of Zend_Log_Writer_Abstract maintains references to array of Zend_Log_Filter_Interface Zend_Log_Writer_Abstract maintains reference to array of Zend_Log_Filter_Interface main...

Log translated strings when using Zend_Translate

Hi, With Zend Framework it's easy to log strings that haven't got a translation. My question: how do you log the strings that do have a translation? Thanks!! ...