Skip to content

Commit

Permalink
README.md: add logger section
Browse files Browse the repository at this point in the history
  • Loading branch information
misantron committed Jul 8, 2022
1 parent b1c4922 commit de222da
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,21 @@ $executor->execute($loader->getFixtures(), $loader->getTables());
```

**Important!** Each executor class comes with a purger class which executed before, drop tables and truncate data.

### Debug logger

Execution process debug logs can be enabled by passing PSR-3 logger into executor:

```php
<?php

declare(strict_types=1);

use AsyncAws\DynamoDb\DynamoDbClient;
use Dynamite\Executor;

// PSR-3 compatible implementation of Psr\Log\LoggerInterface
$logger = new Logger();

$executor = new Executor($dynamoDbClient, logger: $logger);
```

0 comments on commit de222da

Please sign in to comment.