ACE_INet  6.3.3
Classes | Namespaces | Macros
INet_Log.h File Reference
#include "ace/INet/INet_Export.h"
#include "ace/Trace.h"

Classes

class  ACE::INet_Log
 

Namespaces

 ACE
 

Macros

#define DLINFO   ACE_TEXT("(%P|%t) [%M] - %T - ")
 
#define INET_NTRACE   0
 
#define ACE_HAS_TRACE
 
#define INET_TRACE(X)   ACE_TRACE_IMPL (X)
 
#define INET_ENABLE_TRACE()   ACE_Trace::start_tracing ()
 
#define INET_DISABLE_TRACE()   ACE_Trace::stop_tracing ()
 
#define DLINFO   ACE_TEXT("%I(%P|%t) [%M] - %T - ")
 
#define INET_ERROR(L, X)
 
#define INET_DEBUG(L, X)
 
#define INET_HEX_DUMP(L, X)
 
#define INET_ERROR_RETURN(L, X, Y)
 
#define INET_ERROR_BREAK(L, X)   { INET_ERROR (L, X); break; }
 

Detailed Description

Author
Martin Corino mcori.nosp@m.no@r.nosp@m.emedy.nosp@m..nl
  • Macros used for logging in INet

Macro Definition Documentation

#define ACE_HAS_TRACE
#define DLINFO   ACE_TEXT("(%P|%t) [%M] - %T - ")
#define DLINFO   ACE_TEXT("%I(%P|%t) [%M] - %T - ")
#define INET_DEBUG (   L,
 
)
Value:
do { \
{ \
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)
static ACE_Log_Msg * instance(void)
static unsigned int debug_level_
Definition: INet_Log.h:26
static int last_error_adapter(void)
#define INET_DISABLE_TRACE ( )    ACE_Trace::stop_tracing ()
#define INET_ENABLE_TRACE ( )    ACE_Trace::start_tracing ()
#define INET_ERROR (   L,
 
)
Value:
do { \
{ \
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)
static ACE_Log_Msg * instance(void)
static unsigned int debug_level_
Definition: INet_Log.h:26
static int last_error_adapter(void)
#define INET_ERROR_BREAK (   L,
 
)    { INET_ERROR (L, X); break; }
#define INET_ERROR_RETURN (   L,
  X,
 
)
Value:
do { \
{ \
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)
static ACE_Log_Msg * instance(void)
static unsigned int debug_level_
Definition: INet_Log.h:26
static int last_error_adapter(void)
#define INET_HEX_DUMP (   L,
 
)
Value:
do { \
{ \
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_hexdump X; \
} \
} while (0)
static ACE_Log_Msg * instance(void)
static unsigned int debug_level_
Definition: INet_Log.h:26
static int last_error_adapter(void)
#define INET_NTRACE   0
#define INET_TRACE (   X)    ACE_TRACE_IMPL (X)