ACE  6.3.3
Classes | Macros
Log_Category.h File Reference
#include "ace/Log_Priority.h"
#include "ace/Log_Msg.h"
#include "ace/Thread_Mutex.h"
#include "ace/Log_Category.inl"

Classes

class  ACE_Log_Category_TSS
 The thread specific object for a ACE_Log_Categy object. More...
 
class  ACE_Log_Category
 Provides a categorized message logging abstraction. More...
 

Macros

#define ACELIB_HEX_DUMP(X)
 
#define ACELIB_RETURN(Y)
 
#define ACELIB_ERROR_RETURN(X, Y)
 
#define ACELIB_ERROR(X)
 
#define ACELIB_DEBUG(X)
 
#define ACELIB_ERROR_BREAK(X)   { ACELIB_ERROR (X); break; }
 

Detailed Description

Author
Huang-Ming Huang huang.nosp@m.h@oc.nosp@m.iweb..nosp@m.com

Macro Definition Documentation

#define ACELIB_DEBUG (   X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Category_TSS *ace___ = ACE_Log_Category::ace_lib().per_thr_obj(); \
if (ace___ == 0) break;\
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log X; \
} while (0)
static ACE_Log_Category & ace_lib()
Definition: Log_Category.cpp:129
ACE_Log_Category_TSS * per_thr_obj()
Definition: Log_Category.cpp:76
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:395
#define ACELIB_ERROR (   X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Category_TSS *ace___ = ACE_Log_Category::ace_lib().per_thr_obj(); \
if (ace___ == 0) break;\
ace___->conditional_set (__FILE__, __LINE__, -1, __ace_error); \
ace___->log X; \
} while (0)
static ACE_Log_Category & ace_lib()
Definition: Log_Category.cpp:129
ACE_Log_Category_TSS * per_thr_obj()
Definition: Log_Category.cpp:76
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:395
#define ACELIB_ERROR_BREAK (   X)    { ACELIB_ERROR (X); break; }
#define ACELIB_ERROR_RETURN (   X,
 
)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Category_TSS *ace___ = ACE_Log_Category::ace_lib().per_thr_obj(); \
if (ace___ == 0) return Y;\
ace___->conditional_set (__FILE__, __LINE__, Y, __ace_error); \
ace___->log X; \
return Y; \
} while (0)
static ACE_Log_Category & ace_lib()
Definition: Log_Category.cpp:129
ACE_Log_Category_TSS * per_thr_obj()
Definition: Log_Category.cpp:76
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:395
#define ACELIB_HEX_DUMP (   X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Category_TSS *ace___ = ACE_Log_Category::ace_lib().per_thr_obj(); \
if (ace___ == 0) break;\
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log_hexdump X; \
} while (0)
static ACE_Log_Category & ace_lib()
Definition: Log_Category.cpp:129
ACE_Log_Category_TSS * per_thr_obj()
Definition: Log_Category.cpp:76
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:395
#define ACELIB_RETURN (   Y)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Msg *ace___ = ACE_Log_Msg::instance(); \
ace___->set (__FILE__, __LINE__, Y, __ace_error, ace___->restart (), \
ace___->msg_ostream (), ace___->msg_callback ()); \
return Y; \
} while (0)
static ACE_Log_Msg * instance(void)
Returns a pointer to the Singleton.
Definition: Log_Msg.cpp:276
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:395