Skip to content

Pushover adapter for Zend Logger ~2.5 (Zend Framework 2)

Notifications You must be signed in to change notification settings

redokun/zend-log-pushover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pushover adapter for Zend Logger ~2.5

(ZF Logger 2.5 is used in Zend Framework 2.*)

Send application log messages to Pushover

Example (send only CRIT errors and above to Pushover):

$pushoverWriter = new \ZendLogPushover\Writer\Pushover();
$pushoverWriter->setUser(new \Pushy\User("userKey"));
$pushoverWriter->setClient(new \Pushy\Client("clientKey"));

$pushoverWriter->addFilter(\Zend\Log\Logger::CRIT);

// Add writer to zf logger
$logger = new \Zend\Log\Logger();
$logger->addWriter($pushoverWriter);

TODO

  • Better default message title

About

Pushover adapter for Zend Logger ~2.5 (Zend Framework 2)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages