Mutates the builder so that the result status will also be logged to the provided sink when this builder is converted to a status.
Declared in <absl/status/status_builder.h>
StatusBuilder&
AlsoOutputToSink(absl::LogSink* sink) &;
Overwrites any sink set prior. The provided sink must point to a valid object by the time this builder is converted to a status. Has no effect if this builder is not configured to log by calling any of the LogXXX methods.
*this to allow method chaining.
| Name | Description |
|---|---|
| sink | The log sink to also receive the result status. |