Variable opentelemetry::logs::SeverityNumToText

Variable Documentation

const nostd::string_view opentelemetry::logs::SeverityNumToText[25] = {"INVALID", "TRACE", "TRACE2", "TRACE3", "TRACE4", "DEBUG", "DEBUG2", "DEBUG3", "DEBUG4", "INFO", "INFO2", "INFO3", "INFO4", "WARN", "WARN2", "WARN3", "WARN4", "ERROR", "ERROR2", "ERROR3", "ERROR4", "FATAL", "FATAL2", "FATAL3", "FATAL4"}

Mapping of the severity enum above, to a severity text string (in all caps). This severity text can be printed out by exporters. Capital letters follow the spec naming convention.

Included to follow the specification’s recommendation to print both severity number and text in each log record.