DDS4CCM  1.1.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Variables
Log_Macros.h File Reference
#include "DDS4CCM_Logger_Export.h"
#include "ace/Log_Msg.h"
#include "ace/Log_Category.h"

Macros

#define DDS4CCM_INFO   "(%P|%t) [%M] - %T - "
 
#define DDS4CCM_LOG_LEVEL_ERROR   1
 
#define DDS4CCM_LOG_LEVEL_CAST_ERROR   2
 
#define DDS4CCM_LOG_LEVEL_DDS_NIL_RETURN   3
 
#define DDS4CCM_LOG_LEVEL_4   4
 
#define DDS4CCM_LOG_LEVEL_5   5
 
#define DDS4CCM_LOG_LEVEL_ACTION   6
 
#define DDS4CCM_LOG_LEVEL_UNIMP_ACTION   7
 
#define DDS4CCM_LOG_LEVEL_ACTION_STARTING   8
 
#define DDS4CCM_LOG_LEVEL_CAST_SUCCESSFUL   9
 
#define DDS4CCM_LOG_LEVEL_DDS_STATUS   10
 
#define DDS4CCM_NTRACE   1
 
#define DDS4CCM_TRACE(X)   do {} while (0)
 
#define DDS4CCM_ENABLE_TRACE()   do {} while (0)
 
#define DDS4CCM_DISABLE_TRACE()   do {} while (0)
 
#define DDS4CCM_ERROR(L, X)
 
#define DDS4CCM_DEBUG(L, X)
 
#define DDS4CCM_PRINT_INTERNAL_EXCEPTION(L, E, X)
 
#define DDS4CCM_PRINT_CORBA_EXCEPTION(L, E, X)
 
#define DDS4CCM_PRINT_DEBUG_CORBA_EXCEPTION(L, E, X)
 
#define DDS4CCM_ERROR_RETURN(L, X, Y)
 
#define DDS4CCM_ERROR_BREAK(L, X)   { DDS4CCM_ERROR (L, X); break; }
 

Variables

DDS4CCM_Logger_Export unsigned int DDS4CCM_debug_level
 
DDS4CCM_Logger_Export
ACE_Log_Category 
DDS4CCM_log_category
 

Detailed Description

Author
William R. Otte wotte.nosp@m.@dre.nosp@m..vand.nosp@m.erbi.nosp@m.lt.ed.nosp@m.u

Macros used for logging in DDS4CCM

Macro Definition Documentation

#define DDS4CCM_DEBUG (   L,
 
)
Value:
do { \
if (DDS4CCM_debug_level >= L) \
{ \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
if (ace___ == 0) break; \
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log X; \
} \
} while (0)
#define DDS4CCM_DISABLE_TRACE ( )    do {} while (0)
#define DDS4CCM_ENABLE_TRACE ( )    do {} while (0)
#define DDS4CCM_ERROR (   L,
 
)
Value:
do { \
if (DDS4CCM_debug_level >= L) \
{ \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
if (ace___ == 0) break; \
ace___->conditional_set (__FILE__, __LINE__, -1, __ace_error); \
ace___->log X; \
} \
} while (0)
#define DDS4CCM_ERROR_BREAK (   L,
 
)    { DDS4CCM_ERROR (L, X); break; }
#define DDS4CCM_ERROR_RETURN (   L,
  X,
 
)
Value:
do { \
if (DDS4CCM_debug_level >= L) \
{ \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
if (ace___ == 0) break; \
ace___->conditional_set (__FILE__, __LINE__, Y, __ace_error); \
ace___->log X; \
} \
return Y; \
} while (0)
#define DDS4CCM_INFO   "(%P|%t) [%M] - %T - "
#define DDS4CCM_LOG_LEVEL_4   4
#define DDS4CCM_LOG_LEVEL_5   5
#define DDS4CCM_LOG_LEVEL_ACTION   6
#define DDS4CCM_LOG_LEVEL_ACTION_STARTING   8
#define DDS4CCM_LOG_LEVEL_CAST_ERROR   2
#define DDS4CCM_LOG_LEVEL_CAST_SUCCESSFUL   9
#define DDS4CCM_LOG_LEVEL_DDS_NIL_RETURN   3
#define DDS4CCM_LOG_LEVEL_DDS_STATUS   10
#define DDS4CCM_LOG_LEVEL_ERROR   1
#define DDS4CCM_LOG_LEVEL_UNIMP_ACTION   7
#define DDS4CCM_NTRACE   1
#define DDS4CCM_PRINT_CORBA_EXCEPTION (   L,
  E,
 
)
Value:
do { \
if (DDS4CCM_debug_level >= L) \
{ \
ACE_CString msg (X);\
msg += " - Caught CORBA exception.\n";\
DDS4CCM_ERROR (L, (LM_ERROR, msg.c_str ()));\
E._tao_print_exception (X);\
} \
} while (0)
#define DDS4CCM_PRINT_DEBUG_CORBA_EXCEPTION (   L,
  E,
 
)
Value:
do { \
if (DDS4CCM_debug_level >= L) \
{ \
ACE_CString msg (X);\
msg += " - Caught CORBA exception.\n";\
DDS4CCM_DEBUG (L, (LM_DEBUG, msg.c_str ()));\
E._tao_print_exception (X);\
} \
} while (0)
#define DDS4CCM_PRINT_INTERNAL_EXCEPTION (   L,
  E,
 
)
Value:
do { \
if (DDS4CCM_debug_level >= L) \
{ \
ACE_CString msg (X);\
msg += " - Caught CCM_DDS internal exception: error <";\
msg += E; \
msg += ">\n";\
DDS4CCM_ERROR (L, (LM_ERROR, msg.c_str ()));\
} \
} while (0)
#define DDS4CCM_TRACE (   X)    do {} while (0)

Variable Documentation

DDS4CCM_Logger_Export unsigned int DDS4CCM_debug_level