Skip to content

Commit 22b3f3d

Browse files
committed
Update README.md
1 parent 1f0968e commit 22b3f3d

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

README.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,7 @@ Or add dependency to `composer.json` file:
2121
"stackify/monolog": "~1.0",
2222
```
2323

24-
If you use [MonologBundle](https://github.com/symfony/MonologBundle) it is best to configure the Stackify handler using the Symfony Dependency Injection configuration files:
25-
```yml
26-
# YML example
27-
services:
28-
stackify_handler:
29-
class: "Stackify\\Log\\Monolog\\Handler"
30-
arguments: ["application_name"]
31-
32-
monolog:
33-
handlers:
34-
main:
35-
type: stream
36-
path: "%kernel.logs_dir%/%kernel.environment%.log"
37-
stackify:
38-
type: service
39-
id: stackify_handler
40-
```
41-
42-
To get more error details pass Exception objects to the logger if available:
43-
```php
44-
try {
45-
$db->connect();
46-
catch (DbException $ex) {
47-
// you may use any key name
48-
$logger->addError('DB is not available', ['ex' => $ex]);
49-
}
50-
```
24+
If you use [MonologBundle](https://github.com/symfony/MonologBundle) it is best to configure the Stackify handler using the Symfony Dependency Injection configuration files. See examples below.
5125

5226
There are three different transport options that can be configured to send data to Stackify. Below will show how to implement the different transport options.
5327

0 commit comments

Comments
 (0)