Back to index

natlog  0.91.0
setsyslogfacility.cc
Go to the documentation of this file.
00001 #include "options.ih"
00002 
00003 void Options::setSyslogFacility()
00004 {
00005     d_syslogFacility = s_syslogFacilities.find(s_defaultSyslogFacility);
00006 
00007     string option;
00008     if (d_arg.option(&option, "syslog-facility"))
00009     {
00010         std::unordered_map<std::string, FBB::Facility>::const_iterator 
00011             facility = s_syslogFacilities.find(option);
00012 
00013         if (facility != s_syslogFacilities.end())
00014             d_syslogFacility == facility;
00015         else
00016             d_syslogFacilityError = option;
00017     }            
00018 }