Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / Logging / Use_Callback.cpp
blob9f8aa17daba51b2d531f800910ab733c7255eb10
1 #include "ace/Log_Msg.h"
2 #include "Callback.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;