1 #include "ace/Log_Msg.h"
5 int ACE_TMAIN (int, ACE_TCHAR
*argv
[])
7 // This will be directed to stderr (the default ACE_Log_Msg
11 ACE_DEBUG ((LM_DEBUG
, ACE_TEXT ("%IHi Mom\n")));
13 // Everything from foo() will be directed to the system logger
15 (argv
[0], ACE_Log_Msg::SYSLOG
, ACE_TEXT ("syslogTest"));
18 // Now we reset the log output to default (stderr)
19 ACE_LOG_MSG
->open (argv
[0]);
20 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("%IGoodnight\n")));
29 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("%IHowdy Pardner\n")));