absl::StatusBuilder::AlsoOutputToSink

Mutates the builder so that the result status will also 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 also be logged to the provided sink when this builder is converted to a status.

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

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

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

Return Value

*this to allow method chaining.

Parameters

NameDescription
sinkThe log sink to also receive the result status.