CIAO  1.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Variables
Log_Macros.h File Reference
#include "ace/Log_Category.h"
#include "CIAO_Logger_Export.h"

Macros

#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
 
CIAO_Logger_Export ACE_Log_Category CIAO_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 CIAO.

Macro Definition Documentation

#define CIAO_DEBUG (   L,
 
)
Value:
do { \
if (CIAO_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 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 (); \
if (ace___ == 0) break; \
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 (); \
if (ace___ == 0) break; \
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