Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimír Kriška committed Jan 4, 2016
1 parent 08ab9a3 commit 594f7b9
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,38 @@
# yii2-sentry-log-target
# Yii2 Sentry log target

Yii2 log target sends log messages to your Sentry instance.

## Installation

Using Composer:

```
composer require rekurzia/yii2-sentry-log-target
```

## Usage

Add Sentry target to your configuration

```php
$config['components']['log']['targets'] = [
[
'class' => 'Rekurzia\log\SentryTarget',
'levels' => ['error', 'warning'],
'dsn' => 'https://abcdefgh:[email protected]/1',
'includeContextMessage' => true,
'options' => [
'message_limit' => 2048,
],
],
];
```

where:

- `includeContextMessage` is optional, default `false`
- `options` is optional, default `[]`

## License

MIT. See LICENSE file.

0 comments on commit 594f7b9

Please sign in to comment.