diff --git a/CHANGELOG.md b/CHANGELOG.md index fe0e394..c8371e7 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to `LERN` will be documented in this file. +### 2.1.0 +- Added Hipchat, Flowdock and Fleephook support + ### 2.0.0 - Added a `LERN` facade - Monolog\Logger Support diff --git a/README.md b/README.md index 334b395..a4cf726 100755 --- a/README.md +++ b/README.md @@ -8,8 +8,15 @@ **_LERN from your mistakes_** -LERN is a Laravel 5 package that will record exceptions into a database and will notify you via [Email](https://laravel.com/docs/master/mail), [Pushover](https://pushover.net/) or [Slack](https://slack.com/). +LERN is a Laravel 5 package that will record exceptions into a database and will send you a notification. +Currently supported notification channels +- Email +- [Pushover](https://pushover.net/) +- [Slack](https://slack.com/) +- [Hipchat](https://www.hipchat.com/) +- [Fleephook](https://fleep.io/) +- [Flowdock](https://www.flowdock.com/) ## Installation @@ -65,7 +72,7 @@ $mostRecentException = ExceptionModel::orderBy('created_at','DESC')->first() ``` ### Notifications -LERN uses the Monolog library to send notifications. LERN currently supports Slack, Pushover and Email but if you need more, then you can add your own custom Monolog handlers. To start using any of the supported handlers just edit the provided config file `config/lern.php`. +LERN uses the Monolog library to send notifications. If you need more than the supported notification channels, then you can add your own custom Monolog handlers. To start using any of the supported handlers just edit the provided config file `config/lern.php`. #### Changing the text ```php diff --git a/src/Notifications/MonologHandlerFactory.php b/src/Notifications/MonologHandlerFactory.php index fd003ba..bafcd42 100755 --- a/src/Notifications/MonologHandlerFactory.php +++ b/src/Notifications/MonologHandlerFactory.php @@ -27,7 +27,7 @@ public function create($driver, $subject = null) * Creates FleepHook Monolog Handler * @return \Monolog\Handler\FleepHookHandler A handler to use with a Monolog\Logger instance */ - protected function fleephook(){ + protected function fleephook() { return new \Monolog\Handler\FleepHookHandler( $this->config['token'], Logger::ERROR @@ -38,7 +38,7 @@ protected function fleephook(){ * Creates HipChat Monolog Handler * @return \Monolog\Handler\HipChatHandler A handler to use with a Monolog\Logger instance */ - protected function hipchat(){ + protected function hipchat() { return new \Monolog\Handler\HipChatHandler( $this->config['token'], $this->config['room'], @@ -57,7 +57,7 @@ protected function hipchat(){ * Creates Flowdock Monolog Handler * @return \Monolog\Handler\FlowdockHandler A handler to use with a Monolog\Logger instance */ - protected function flowdock(){ + protected function flowdock() { return new \Monolog\Handler\FlowdockHandler( $this->config['token'], Logger::ERROR