Skip to content
Browse files

Merge pull request #3 from schmittjoh/patch-1

adds LoggerAwareTrait
  • Loading branch information...
2 parents edd1208 + 3c7f4ba commit 76d0931c5c6e6f0c94d915f1f85764ac4c39682f @Seldaek Seldaek committed Dec 13, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 Psr/Log/LoggerAwareTrait.php
View
22 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.
Something went wrong with that request. Please try again.