Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / Logging / Howto_Syslog.cpp
blob333caa4f228e758cf38d6e56f194116c30090d31
1 #include "ace/Log_Msg.h"
3 void foo ();
5 // Listing 1 code/ch03
6 int ACE_TMAIN (int, ACE_TCHAR *argv[])
8 ACE_LOG_MSG->open
9 (argv[0], ACE_Log_Msg::SYSLOG, ACE_TEXT ("syslogTest"));
10 // Listing 1
12 ACE_TRACE ("main");
14 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%IHi Mom\n")));
15 foo ();
16 ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IGoodnight\n")));
18 return 0;
21 void foo ()
23 ACE_TRACE ("foo");
25 ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHowdy Pardner\n")));