Skip to content

Instantly share code, notes, and snippets.

@mcrmfc
Created January 11, 2012 16:19
Show Gist options
  • Select an option

  • Save mcrmfc/1595420 to your computer and use it in GitHub Desktop.

Select an option

Save mcrmfc/1595420 to your computer and use it in GitHub Desktop.
zend logging (when not in Micro)
// Place this in your bootstrap file before dispatching your front controller
$writer = new Zend_Log_Writer_Firebug();
$logger = new Zend_Log($writer);
// Use this in your model, view and controller files
$logger->log('This is a log message!', Zend_Log::INFO);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment