absl::StatusBuilder::OnlyOutputToSink

Mutates the builder so that the result status will only be logged to the provided sink when this builder is converted to a status.

Synopses

Declared in <absl/status/status_builder.h>

Mutates the builder so that the result status will only be logged to the provided sink when this builder is converted to a status.

StatusBuilder&
OnlyOutputToSink(absl::LogSink* sink) &;
» more...

Mutates the builder so that the result status will only be logged to the provided sink when this builder is converted to a status.

[[nodiscard]]
StatusBuilder&&
OnlyOutputToSink(absl::LogSink* sink) &&;
» more...

Return Value

*this to allow method chaining.

Parameters

NameDescription
sinkThe log sink to exclusively receive the result status.