Exemplo n.º 1
0
 protected function write(array $record)
 {
     foreach ($this->skipPatterns as $pattern) {
         if (preg_match($pattern, $record['message'])) {
             return;
         }
     }
     parent::write($record);
 }
Exemplo n.º 2
0
 public function __construct(Cache $cache = null, Logger $logger = null, $level = Logger::DEBUG, $bubble = true)
 {
     parent::__construct(null, $level, $bubble);
     if ($logger === null) {
         $logger = new Logger('Cache');
     }
     $this->logger = $logger;
     if ($cache !== null) {
         $this->addCache($cache);
     }
 }