Created
January 11, 2016 14:29
-
-
Save rootindex/98cde0ce8dc4829efe19 to your computer and use it in GitHub Desktop.
Including logger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Blah { | |
protected $_logger; | |
public function __construct( | |
\Psr\Log\LoggerInterface $logger | |
){ | |
$this->_logger = $logger; | |
} | |
public function someClass() | |
{ | |
$this->_logger->info(json_encode($product->debug())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment