CIAO 1.0.5
Defines | Variables
Log_Macros.h File Reference
#include "CIAO_Logger_Export.h"

Defines

#define CLINFO   "(%P|%t) [%M] - %T - "
#define CIAO_NTRACE   1
#define CIAO_TRACE(X)   do {} while (0)
#define CIAO_ENABLE_TRACE()   do {} while (0)
#define CIAO_DISABLE_TRACE()   do {} while (0)
#define CIAO_ERROR(L, X)
#define CIAO_DEBUG(L, X)
#define CIAO_ERROR_RETURN(L, X, Y)
#define CIAO_ERROR_BREAK(L, X)   { CIAO_ERROR (L, X); break; }

Variables

CIAO_Logger_Export unsigned int CIAO_debug_level

Detailed Description

Author:
William R. Otte <wotte@dre.vanderbilt.edu>

Macros used for logging in CIAO.


Define Documentation

#define CIAO_DEBUG (   L,
 
)
Value:
do { \
    if (CIAO_debug_level >= L) \
      { \
        int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
        ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
        ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
        ace___->log X; \
      } \
  } while (0)
#define CIAO_DISABLE_TRACE ( )    do {} while (0)
#define CIAO_ENABLE_TRACE ( )    do {} while (0)
#define CIAO_ERROR (   L,
 
)
Value:
do { \
    if (CIAO_debug_level >= L) \
      { \
        int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
        ACE_Log_Msg *ace___ = ACE_Log_Msg::instance ();               \
        ace___->conditional_set (__FILE__, __LINE__, -1, __ace_error); \
        ace___->log X; \
      } \
  } while (0)
#define CIAO_ERROR_BREAK (   L,
 
)    { CIAO_ERROR (L, X); break; }
#define CIAO_ERROR_RETURN (   L,
  X,
 
)
Value:
do { \
    if (CIAO_debug_level >= L) \
      { \
        int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
        ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
        ace___->conditional_set (__FILE__, __LINE__, Y, __ace_error); \
        ace___->log X; \
      } \
    return Y; \
  } while (0)
#define CIAO_NTRACE   1
#define CIAO_TRACE (   X)    do {} while (0)
#define CLINFO   "(%P|%t) [%M] - %T - "

Variable Documentation

CIAO_Logger_Export unsigned int CIAO_debug_level
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines