Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / examples / Logging / Logging_Service.cpp
blob9c72c3ba08e0c1d1a34ff1ce72e9ed1bf7125c93
1 #include "Logging_Service_i.h"
2 #include "tao/debug.h"
4 int
5 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
7 // Set TAO_debug_level to 0 to ensure silent running unless
8 // debugging is explicitly invoked
9 TAO_debug_level = 0;
11 Logger_Server log_server;
13 try
15 int ret = log_server.init (argc, argv);
16 if (ret == -1)
17 return 1;
18 else
20 log_server.run ();
23 catch (const CORBA::SystemException& sysex)
25 sysex._tao_print_exception ("System Exception");
26 return -1;
28 catch (const CORBA::UserException& userex)
30 userex._tao_print_exception ("User Exception");
31 return -1;
34 return 0;