Back to index

natlog  0.91.0
setsyslogpriority.cc
Go to the documentation of this file.
00001 #include "options.ih"
00002 
00003 void Options::setSyslogPriority()
00004 {
00005     d_syslogPriority = s_syslogPriorities.find(s_defaultSyslogPriority);
00006 
00007     string option;
00008     if (not d_arg.option(&option, "syslog-priority"))
00009     {
00010         std::unordered_map<std::string, FBB::Priority>::const_iterator 
00011             priority = s_syslogPriorities.find(option);
00012 
00013         if (priority != s_syslogPriorities.end())
00014             d_syslogPriority = priority;
00015         else
00016             d_syslogPriorityError = option;
00017     }            
00018 }