Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Fix documentation for configuring processor via $logger->addProcessor()
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Auskerin committed Dec 5, 2018
1 parent 7271f34 commit 7f6c633
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/book/processors.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ $processor = new Zend\Log\Processor\Backtrace(['ignoredNamespaces' => ['Foo\\Log
$logger->addProcessor($processor);
```

Alternatively, if not separately instantiating the processor, these options can be passed as a second argument to the logger's `addProcessor()` function:
Alternatively, if not separately instantiating the processor, these options can be passed as the third argument to the logger's `addProcessor()` function:

```php
$logger->addProcessor('backtrace', ['ignoredNamespaces' => ['Foo\\Log']]);
// Assuming the default processor priority of 1
$logger->addProcessor('backtrace', 1, ['ignoredNamespaces' => ['Foo\\Log']]);
```

### PsrPlaceholder
Expand Down

0 comments on commit 7f6c633

Please sign in to comment.