_regexp = $regexp; } /** * Create a new instance of Zend_Log_Filter_Message * * @param array|Zend_Config $config * @return Zend_Log_Filter_Message * @throws Zend_Log_Exception */ static public function factory($config) { $config = self::_parseConfig($config); $config = array_merge(array( 'regexp' => null ), $config); return new self( $config['regexp'] ); } /** * Returns TRUE to accept the message, FALSE to block it. * * @param array $event event data * @return boolean accepted? */ public function accept($event) { return preg_match($this->_regexp, $event['message']) > 0; } }