Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / Logging / Change_Mask.cpp
blob96bbd75dcb1fbe2de3fcd20c6a8ca232255040dc
1 #include "ace/Log_Msg.h"
3 void foo ();
5 int ACE_TMAIN (int, ACE_TCHAR *[])
7 ACE_TRACE ("main");
9 // Listing 1 code/ch03
10 ACE_LOG_MSG->priority_mask (0, ACE_Log_Msg::PROCESS);
11 ACE_LOG_MSG->priority_mask (LM_DEBUG | LM_NOTICE,
12 ACE_Log_Msg::THREAD);
13 // Listing 1
15 ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHi Mom\n")));
16 foo ();
17 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%IGoodnight\n")));
19 return 0;
22 void foo ()
24 ACE_TRACE ("foo");
26 ACE_DEBUG ((LM_NOTICE, ACE_TEXT ("%IHowdy Pardner\n")));