Back to index

natlog  0.91.0
setupdaemonmsg.cc
Go to the documentation of this file.
00001 #include "natfork.ih"
00002 
00003 void NatFork::setupDaemonMsg()
00004 {
00005     if (not d_options.syslog())
00006     {
00007         imsg.off();
00008         wmsg.off();
00009 
00010         return;
00011     }
00012 
00013                                 // verbose msg via syslog, if syslog is active
00014     if (d_options.verbose())
00015         imsg.reset(*d_syslog);
00016     else
00017         imsg.off();
00018 
00019                                 // warning msg via syslog, if syslog is active
00020     if (d_options.warnings())
00021         wmsg.reset(*d_syslog);
00022     else
00023         wmsg.off();
00024 }