aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
blob: f087a3dac894750a999e4e329662451f4ec0c8b0 (plain) (tree)





















                                                      
<?php

namespace Psr\Log;

/**
 * Basic Implementation of LoggerAwareInterface.
 */
trait LoggerAwareTrait
{
    /** @var LoggerInterface */
    protected $logger;

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