Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / APG / Logging / Use_Logging_Server.cpp
blob0ea5a550a47c5816801d99bbe56c03b6fc4e7c6f
1 #include "ace/Log_Msg.h"
2 #include "Callback-3.h"
4 int ACE_TMAIN (int, ACE_TCHAR *[])
6 Callback *callback = new Callback;
8 ACE_LOG_MSG->set_flags (ACE_Log_Msg::MSG_CALLBACK);
9 ACE_LOG_MSG->clr_flags (ACE_Log_Msg::STDERR);
10 ACE_LOG_MSG->msg_callback (callback);
12 ACE_TRACE ("main");
14 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%IHi Mom\n")));
15 ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IGoodnight\n")));
17 return 0;