Back to index

natlog  0.91.0
setsyslogparams.cc
Go to the documentation of this file.
00001 #include "options.ih"
00002 
00003 void Options::setSyslogParams()
00004 {
00005     d_useSyslog = not d_arg.option(0, "no-syslog");
00006 
00007     if (d_useSyslog)
00008     {
00009         if (not d_arg.option(&d_syslogTag, "syslog-tag"))
00010             d_syslogTag = s_defaultSyslogIdent;
00011     
00012         setSyslogFacility();
00013         setSyslogPriority();
00014     }
00015 }