Skip to content

Commit

Permalink
Merge pull request #3 from schmittjoh/patch-1
Browse files Browse the repository at this point in the history
adds LoggerAwareTrait
  • Loading branch information
Seldaek committed Dec 13, 2012
2 parents edd1208 + 3c7f4ba commit 76d0931
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Psr/Log/LoggerAwareTrait.php
@@ -0,0 +1,22 @@
<?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;
}
}

0 comments on commit 76d0931

Please sign in to comment.