[#absl-StatusBuilder-EmitStackTrace-0b] = xref:absl.adoc[absl]::xref:absl/StatusBuilder.adoc[StatusBuilder]::EmitStackTrace :relfileprefix: ../../ :mrdocs: Mutates the builder so that a stack trace will be logged if the status is logged. == Synopsis Declared in `<absl/status/status_builder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:absl/StatusBuilder.adoc[StatusBuilder]&& EmitStackTrace() &&; ---- == Description One of the logging setters above should be called as well. If logging is not yet enabled this behaves as if `LogInfo().EmitStackTrace()` was called. == Return Value `*this` to allow method chaining. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#