# charitable/1.8.13/vendor/psr/log/src/LoggerAwareTrait.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.8.13. 23 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.8.13/code/vendor/psr/log/src/LoggerAwareTrait.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.13/raw/vendor/psr/log/src/LoggerAwareTrait.php
- Modified: 2025-07-07T14:22:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.8.13/code/vendor/psr/log/src/LoggerAwareTrait.php#L10-L20`.

```php
<?php

namespace Psr\Log;

/**
 * Basic Implementation of LoggerAwareInterface.
 */
trait LoggerAwareTrait
{
    /**
     * The logger instance.
     */
    protected ?LoggerInterface $logger = null;

    /**
     * Sets a logger.
     */
    public function setLogger(LoggerInterface $logger): void
    {
        $this->logger = $logger;
    }
}

```
