ACE 8.0.5
Loading...
Searching...
No Matches
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)

Detailed Description

Macro Definition Documentation

◆ ACELIB_DEBUG

#define ACELIB_DEBUG ( X)
Value:
do { \
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)
The thread specific object for a ACE_Log_Categy object.
Definition Log_Category.h:148
static ACE_Log_Category & ace_lib()
Definition Log_Category.cpp:126
ACE_Log_Category_TSS * per_thr_obj()
Definition Log_Category.cpp:75
static int last_error_adapter()
Returns last error.
Definition Log_Msg.cpp:389

◆ ACELIB_ERROR

#define ACELIB_ERROR ( X)
Value:
do { \
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)

◆ ACELIB_ERROR_BREAK

#define ACELIB_ERROR_BREAK ( X)
Value:
{ ACELIB_ERROR (X); break; }
#define ACELIB_ERROR(X)
Definition Log_Category.h:99

◆ ACELIB_ERROR_RETURN

#define ACELIB_ERROR_RETURN ( X,
Y )
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
if (ace___ == 0) return Y;\
ace___->conditional_set (__FILE__, __LINE__, Y, __ace_error); \
ace___->log X; \
return Y; \
} while (0)

◆ ACELIB_HEX_DUMP

#define ACELIB_HEX_DUMP ( X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
if (ace___ == 0) break;\
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log_hexdump X; \
} while (0)

◆ ACELIB_RETURN

#define ACELIB_RETURN ( Y)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ace___->set (__FILE__, __LINE__, Y, __ace_error, ace___->restart (), \
ace___->msg_ostream (), ace___->msg_callback ()); \
return Y; \
} while (0)
Provides a variable length argument message logging abstraction.
Definition Log_Msg.h:219
static ACE_Log_Msg * instance()
Returns a pointer to the Singleton.
Definition Log_Msg.cpp:279
ACE_Log_Msg_Callback * msg_callback(ACE_Log_Msg_Callback *c)
Definition Log_Msg.inl:191
void msg_ostream(ACE_OSTREAM_TYPE *)
Update the ostream without overwriting the delete_ostream_ flag.
Definition Log_Msg.inl:207
void set(const char *file, int line, int op_status=-1, int errnum=0, bool restart=true, ACE_OSTREAM_TYPE *os=0, ACE_Log_Msg_Callback *c=0)
Definition Log_Msg.cpp:2955
void restart(bool r)
Definition Log_Msg.inl:41