absl::StatusBuilder::Log

Mutates the builder so that the result status will be logged (without a stack trace) 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 be logged (without a stack trace) when this builder is converted to a Status.

StatusBuilder&
Log(absl::LogSeverity level) &;
» more...

Mutates the builder so that the result status will be logged (without a stack trace) when this builder is converted to a Status.

[[nodiscard]]
StatusBuilder&&
Log(absl::LogSeverity level) &&;
» more...

Return Value

*this to allow method chaining.

Parameters

NameDescription
levelThe severity level at which to log the result status.