suppress($suppress); } /** * This is a simple boolean filter. * * Call suppress(true) to suppress all log events. * Call suppress(false) to accept all log events. * * @param bool $suppress Should all log events be suppressed? * @return void */ public function suppress($suppress) { $this->accept = ! (bool) $suppress; } /** * Returns TRUE to accept the message, FALSE to block it. * * @param array $event event data * @return bool accepted? */ public function filter(array $event) { return $this->accept; } }