aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
blob: 639f79bdaa5a007de241f4d902b679c51980eaca (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                




                           



                      
      






                                                      
<?php

namespace Psr\Log;

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

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