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) &;
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) &&;
Return Value
*this to allow method chaining.
Parameters
Name |
Description |
sink |
The log sink to exclusively receive the result status. |
Created with MrDocs