absl::ShouldPrependLogPrefix

Returns the value of the Prepend Log Prefix option.

Synopsis

Declared in <absl/log/globals.h>

[[nodiscard]]
bool
ShouldPrependLogPrefix();

Description

This function is async-signal-safe.

Return Value

True if messages should include the prefix.

NOTE

The return value should not be discarded.