=ERRORTo * match all logs, don't add exclusions and use the following line as the * value of filter:logName:*Cannot be empty or unset when the value of mode is * OVERWRITE. * * @var string */ public $filter; /** * Required. Determines the behavior to apply to the built-in _Default sink * inclusion filter.Exclusions are always appended, as built-in _Default sinks * have no exclusions. * * @var string */ public $mode; /** * Optional. Specifies the set of exclusions to be added to the _Default sink * in newly created resource containers. * * @param LogExclusion[] $exclusions */ public function setExclusions($exclusions) { $this->exclusions = $exclusions; } /** * @return LogExclusion[] */ public function getExclusions() { return $this->exclusions; } /** * Optional. An advanced logs filter * (https://docs.cloud.google.com/logging/docs/view/building-queries#queries- * by-expression). The only exported log entries are those that are in the * resource owning the sink and that match the filter.For * example:logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERRORTo * match all logs, don't add exclusions and use the following line as the * value of filter:logName:*Cannot be empty or unset when the value of mode is * OVERWRITE. * * @param string $filter */ public function setFilter($filter) { $this->filter = $filter; } /** * @return string */ public function getFilter() { return $this->filter; } /** * Required. Determines the behavior to apply to the built-in _Default sink * inclusion filter.Exclusions are always appended, as built-in _Default sinks * have no exclusions. * * Accepted values: FILTER_WRITE_MODE_UNSPECIFIED, APPEND, OVERWRITE * * @param self::MODE_* $mode */ public function setMode($mode) { $this->mode = $mode; } /** * @return self::MODE_* */ public function getMode() { return $this->mode; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DefaultSinkConfig::class, 'Google_Service_Logging_DefaultSinkConfig');