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

Method OnConfigLoaded

lib/base/journaldlogger.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void JournaldLogger::OnConfigLoaded()
31{
32 ObjectImpl<JournaldLogger>::OnConfigLoaded();
33 m_ConfiguredJournalFields.clear();
34 m_ConfiguredJournalFields.push_back(
35 String("SYSLOG_FACILITY=") + Value(SyslogHelper::FacilityToNumber(GetFacility())));
36 const String identifier = GetIdentifier();
37 if (!identifier.IsEmpty()) {
38 m_ConfiguredJournalFields.push_back(String("SYSLOG_IDENTIFIER=" + identifier));
39 }
40}
41
42void JournaldLogger::ValidateFacility(const Lazy<String>& lvalue, const ValidationUtils& utils)
43{

Callers

nothing calls this directly

Calls 5

push_backMethod · 0.80
StringClass · 0.70
ValueClass · 0.70
clearMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected