[#absl-StatusBuilder-AlsoOutputToSink-0e] = xref:absl.adoc[absl]::xref:absl/StatusBuilder.adoc[StatusBuilder]::AlsoOutputToSink :relfileprefix: ../../ :mrdocs: Mutates the builder so that the result status will also be logged to the provided `sink` when this builder is converted to a status. == Synopsis Declared in `<absl/status/status_builder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/StatusBuilder.adoc[StatusBuilder]& AlsoOutputToSink(xref:absl/LogSink.adoc[absl::LogSink]* sink) &; ---- == Description 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. == Return Value `*this` to allow method chaining. == Parameters [cols="1,4"] |=== | Name| Description | *sink* | The log sink to also receive the result status. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#