Writer.php 498 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Zfns;
  3. class Writer extends \Zend_Log_Writer_Abstract
  4. {
  5. /**
  6. * Construct a Zend_Log driver
  7. *
  8. * @param array|\Zend_Config $config
  9. * @return \Zend_Log_FactoryInterface
  10. */
  11. static public function factory($config)
  12. {
  13. return new self();
  14. }
  15. /**
  16. * Write a message to the log.
  17. *
  18. * @param array $event log data event
  19. * @return void
  20. */
  21. protected function _write($event)
  22. {
  23. // Nothing here
  24. }
  25. }