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
);
14 ACE_DEBUG ((LM_DEBUG
, ACE_TEXT ("%IHi Mom\n")));
15 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("%IGoodnight\n")));