absl::AbslParseFlag

Parses an absl::LogSeverity flag value. See base/log_severity.h for the full documentation.

Synopsis

Declared in <absl/flags/marshalling.h>

bool
AbslParseFlag(
    std::string_view text,
    absl::LogSeverity* dst,
    std::string* err);

Return Value

true if the value was successfully parsed.

Parameters

NameDescription
textThe flag value text to parse.
dstOutput parameter that receives the parsed value.
errOutput parameter that receives an error message on failure.