1# psr-log-aware-trait 2 3Trait to allow support of different psr/log versions. 4 5By including this PsrLogAwareTrait, you can allow composer to resolve your PsrLogger version for you. 6 7## Use 8 9Require the trait. 10 11 composer require chromatic/psr-log-aware-trait 12 13 14In your code, you no longer have to set a $logger property on your classes, since that comes with the trait, and you do not need to implement the `function setLogger()` method, since that also comes along with the trait. 15 16```php 17use PsrLogAwareTrait; 18``` 19 20Will allow you to call `setLogger()` in your classes and fulfil the requirements of the PsrLoggerAwareInterface implementation. 21