Returns the all‐caps string representation (e.g. "INFO") of the specified severity level if it is one of the standard levels and "UNKNOWN" otherwise.

Synopsis

Declared in <absl/base/log_severity.h>

constexpr
char const*
LogSeverityName(absl::LogSeverity s);

Return Value

The all‐caps name of s, or "UNKNOWN" if s is not a standard level.

Parameters

Name

Description

s

The severity level to name.

Created with MrDocs