absl::StatusBuilder::LogEveryN

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

Synopsis

Declared in <absl/status/status_builder.h>

StatusBuilder&
LogEveryN(
    absl::LogSeverity level,
    int n) &;

Description

This overrides the logging settings from earlier calls to any of the logging mutator functions.

Return Value

*this to allow method chaining.

Parameters

NameDescription
levelThe severity level at which to log the result status.
nLog only once per n invocations.