Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / APG / Logging / Simple2.cpp
blobb0d043a98e88d1d4059c00e862274f93dd45f2c2
1 #include "ace/Log_Msg.h"
3 void foo();
5 int ACE_TMAIN (int, ACE_TCHAR *[])
7 ACE_TRACE ("main");
9 ACE_LOG_MSG->priority_mask (LM_DEBUG | LM_NOTICE,
10 ACE_Log_Msg::PROCESS);
11 ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHi Mom\n")));
12 foo ();
13 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%IGoodnight\n")));
15 return 0;
18 void foo()
20 ACE_TRACE ("foo");
22 ACE_DEBUG ((LM_NOTICE, ACE_TEXT ("%IHowdy Pardner\n")));