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

Method FacilityToNumber

lib/base/sysloglogger.cpp:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97int SyslogHelper::FacilityToNumber(const String& facility)
98{
99 auto it = m_FacilityMap.find(facility);
100 if (it != m_FacilityMap.end())
101 return it->second;
102 else
103 return Convert::ToLong(facility);
104}
105
106void SyslogLogger::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr&)
107{

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected