* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Tests; use Psr\Log\LoggerInterface; class Logger implements LoggerInterface { protected $logs; public function __construct() { $this->clear(); } public function getLogs($level = false) { return false === $level ? $this->logs : $this->logs[$level]; } public function clear() { $this->logs = array( 'emergency' => array(), 'alert' => array(), 'critical' => array(), 'error' => array(), 'warning' => array(), 'notice' => array(), 'info' => array(), 'debug' => array(), ); } public function log($level, $message, array $context = array()) { $this->logs[$level][] = $message; } public function emergency($message, array $context = array()) { $this->log('emergency', $message, $context); } public function alert($message, array $context = array()) { $this->log('alert', $message, $context); } public function critical($message, array $context = array()) { $this->log('critical', $message, $context); } public function error($message, array $context = array()) { $this->log('error', $message, $context); } public function warning($message, array $context = array()) { $this->log('warning', $message, $context); } public function notice($message, array $context = array()) { $this->log('notice', $message, $context); } public function info($message, array $context = array()) { $this->log('info', $message, $context); } public function debug($message, array $context = array()) { $this->log('debug', $message, $context); } } __halt_compiler();----SIGNATURE:----cc0lXHQuxrWVmx5EGs95J5/6/Mn4Acid4vvPXjzdZ6Mz5ZNU9fLAOujS0X3P5aU7WxO7KbLk2SEUNAeJqFh8rxWb0Rx44rTTZLVkeiJpf3UdbC22gZm0DhFUO1P/KFsAO3PqSx8pFzpA0R5ObEHW2Dag0q0RCb8SK//9DJPAw+nFaxZAvJXirsPgbWy36FRZEOcoikbzx5kR1vE31RXMuUW075ifAHpJBslhNUvhjXq2o5gWA7vW7oeUh/tmpDm/ieV6Ustt473Rpv8+vzkSkEn3SkHI9+IpduqMlI6rm3it/DvbuTZ8l+0k4PUyZ5kFDhe2B02/jANAzhZQ4F/npIxixicMenZw8CT1Gid8IcFlvtSAAJGpWvUSaTh3+gp0vZkR9v/2Ba1C3EYqEeFlzQhAHJkuodSB87hvziDDp8pkbLYCUCYQsDIgqhUxasoJUxSL8ImM3pRoQO6oTlSF+RGFpYM71feLE7MEbjblKSBm2mbw84i5QOlOpJTkLbC13sSfZNrkXzEMRBdhF1oz+o0MJFoayeIt6e8TzzFnPPYEugzV3NV1XXjwc1jH1mxVmJuiYRFOc00p7/CdJxcVVRAzqV37AKQDUu0ofvoXsx0YZTZxqpkCsALLYC8J8I9EtewZJ0fxe/5cm0CHMHp8urPD5GMYr4qSenotBaYcMSU=----ATTACHMENT:----OTcyNzcyMjc2MzEwMTkgMTE4OTcxNjcyMDI1NTM5NSA2NDIwNTU1NTM2NDMyMDIy