protected function write(array $record) { foreach ($this->skipPatterns as $pattern) { if (preg_match($pattern, $record['message'])) { return; } } parent::write($record); }
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); } }