Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi authored Jan 16, 2019
1 parent 07dcd62 commit bc67490
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,13 @@ Add to your composer.json
composer require adt/error-logger
````

Place this to your bootstrap.php:
Place this to your bootstrap.php before calling `$configurator->createContainer()`:
````
\ADT\ErrorLogger::install($container);
````

Configuration
-------------

To override maximum number of sent emails per day (default is 10), add it as a second argument to `install` method:
````
\ADT\ErrorLogger::install($container, 25);
````

Available parameters in `config.neon`:
````
parameters:
...
logger:
maxEmailsPerDay: 10
maxEmailsPerRequest: 10
...
$logger = \ADT\ErrorLogger::install($email = '[email protected]', $maxEmailsPerDay = 10, $maxEmailsPerRequest = 10);
````
and this after calling `$configurator->createContainer()`:
```
if ($logger) {
$logger->setup($container);
}
```

0 comments on commit bc67490

Please sign in to comment.