00001 #ifndef _IT_BUS_OLD_LOGGING_HELPER_H_
00002 #define _IT_BUS_OLD_LOGGING_HELPER_H_
00003
00004
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
00028
00029
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