Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tylercd100/lern
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Mar 25, 2016
2 parents 98264dc + 3f34637 commit 05d1690
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/Notifications/MonologHandlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'],
Expand All @@ -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
Expand Down

0 comments on commit 05d1690

Please sign in to comment.