ACE 8.0.5
Loading...
Searching...
No Matches
Log_Msg.h File Reference

Classes

class  ACE_Log_Msg
 Provides a variable length argument message logging abstraction. More...

Macros

#define ACE_HEX_DUMP(X)
#define ACE_RETURN(Y)
#define ACE_ERROR_RETURN(X, Y)
#define ACE_ERROR(X)
#define ACE_DEBUG(X)
#define ACE_ERROR_INIT(VALUE, FLAGS)
#define ACE_ERROR_BREAK(X)
#define ACE_DEFAULT_LOG_FLAGS   ACE_Log_Msg::STDERR
#define ACE_LOG_MSG   ACE_Log_Msg::instance ()

Detailed Description

Macro Definition Documentation

◆ ACE_DEBUG

#define ACE_DEBUG ( X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log X; \
} 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
void conditional_set(const char *file, int line, int op_status, int errnum)
Definition Log_Msg.cpp:2974
static int last_error_adapter()
Returns last error.
Definition Log_Msg.cpp:389
ssize_t log(ACE_Log_Priority priority, const ACE_TCHAR *format,...)
Definition Log_Msg.cpp:929

◆ ACE_DEFAULT_LOG_FLAGS

#define ACE_DEFAULT_LOG_FLAGS   ACE_Log_Msg::STDERR

◆ ACE_ERROR

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

◆ ACE_ERROR_BREAK

#define ACE_ERROR_BREAK ( X)
Value:
{ ACE_ERROR (X); break; }
#define ACE_ERROR(X)
Definition Log_Msg.h:105

◆ ACE_ERROR_INIT

#define ACE_ERROR_INIT ( VALUE,
FLAGS )
Value:
do { \
ace___->set_flags (FLAGS); \
ace___->op_status (VALUE); \
} while (0)
void op_status(int status)
Definition Log_Msg.inl:27
void set_flags(u_long f)
Definition Log_Msg.cpp:557

◆ ACE_ERROR_RETURN

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

◆ ACE_HEX_DUMP

#define ACE_HEX_DUMP ( X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log_hexdump X; \
} while (0)
int log_hexdump(ACE_Log_Priority log_priority, const char *buffer, size_t size, const ACE_TCHAR *text=0, ACE_Log_Category_TSS *category=0)
Definition Log_Msg.cpp:2884

◆ ACE_LOG_MSG

#define ACE_LOG_MSG   ACE_Log_Msg::instance ()

◆ ACE_RETURN

#define ACE_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)
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