MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetMinSeverity

Method GetMinSeverity

lib/base/logger.cpp:90–104  ·  view source on GitHub ↗

* Retrieves the minimum severity for this logger. * * @returns The minimum severity. */

Source from the content-addressed store, hash-verified

88 * @returns The minimum severity.
89 */
90LogSeverity Logger::GetMinSeverity() const
91{
92 String severity = GetSeverity();
93 if (severity.IsEmpty())
94 return LogInformation;
95 else {
96 LogSeverity ls = LogInformation;
97
98 try {
99 ls = Logger::StringToSeverity(severity);
100 } catch (const std::exception&) { /* use the default level */ }
101
102 return ls;
103 }
104}
105
106/**
107 * Converts a severity enum value to a string.

Callers 2

UpdateMinLogSeverityMethod · 0.80
~LogMethod · 0.80

Calls 1

IsEmptyMethod · 0.45

Tested by

no test coverage detected