Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / APG / Logging / Use_Callback2.cpp
blob4e53005d01a47be39adb4b49deddd267f42c94a6
1 #include "ace/Log_Msg.h"
2 #include "Callback-2.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;