it_bus/old_logging_helper.h

00001 #ifndef _IT_BUS_OLD_LOGGING_HELPER_H_
00002 #define _IT_BUS_OLD_LOGGING_HELPER_H_
00003 
00004 // prevent bus_logger.h being included.
00005 #ifdef _IT_BUS_BUS_LOGGER_H_
00006 #error old_logging_helper.h should not be included with bus_logger.h
00007 #endif
00008 
00009 #include <it_bus/api_defines.h>
00010 
00011 namespace CORBA
00012 {
00013     class ORB;
00014 }
00015 
00016 namespace IT_Bus
00017 {
00018     class IT_BUS_API OldLoggingHelper 
00019     {
00020       public:
00021         static void set_logging_default_ORB(CORBA::ORB*);
00022         static unsigned short get_subsystem_log_filter(const char* subsystem);
00023 
00024     };
00025 }
00026 
00027 //these are used to guard a code block from executing when the purpose of the code
00028 //block is solely for formatting a trace statement.  It prevents the code from 
00029 //executing when the trace_level is filtered out and wouldn't be used anyway.
00030 #define BEGIN_TRACE(trace_level)                                        \
00031     if ((it_g_log_filter & trace_level) != 0)                                \
00032     {                                                                                                    
00033 
00034 #define BEGIN_SUBSYSTEM_TRACE(subsystem_filter, trace_level)                                        \
00035     if ((subsystem_filter & trace_level) != 0)                                \
00036     {                                                                                                    
00037 
00038 #define END_TRACE                                                                        \
00039     }
00040 
00041 #endif  

Generated on Thu Sep 7 11:38:59 2006 for Artix by  doxygen 1.4.7