1 #include "LogManager.h"
6 int ACE_TMAIN (int, ACE_TCHAR
*[])
8 LOG_MANAGER
->redirectToStderr ();
10 LOG_MANAGER
->redirectToSyslog ();
11 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("%IHi Mom\n")));
13 LOG_MANAGER
->redirectToDaemon ();
14 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("%IGoodnight\n")));
21 LOG_MANAGER
->redirectToFile ("output.test");
22 ACE_DEBUG ((LM_INFO
, ACE_TEXT ("%IHowdy Pardner\n")));
26 // Listing 2 code/ch03
27 ACE_SINGLETON_TEMPLATE_INSTANTIATE(ACE_Singleton
, LogManager
, ACE_Null_Mutex
);