|
CIAO
1.0.7
|
#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 |
Macros used for logging in CIAO.
| #define CIAO_DEBUG | ( | L, | |
| X | |||
| ) |
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, | |
| X | |||
| ) |
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, | |
| X | |||
| ) | { CIAO_ERROR (L, X); break; } |
| #define CIAO_ERROR_RETURN | ( | L, | |
| X, | |||
| Y | |||
| ) |
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 - " |
| CIAO_Logger_Export unsigned int CIAO_debug_level |
1.7.5