ACE_INet  6.1.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros
INet_Log.h File Reference
#include "ace/INet/INet_Export.h"
#include "ace/Trace.h"

Classes

class  ACE::INet_Log
 

Namespaces

namespace  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 //
Id:
INet_Log.h 90928 2010-06-29 11:21:55Z mcorino

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___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log X; \
} \
} while (0)
#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___->conditional_set (__FILE__, __LINE__, -1, __ace_error); \
ace___->log X; \
} \
} while (0)
#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___->conditional_set (__FILE__, __LINE__, Y, __ace_error); \
ace___->log X; \
return Y; \
} \
} while (0)
#define INET_HEX_DUMP (   L,
 
)
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)
#define INET_NTRACE   0
#define INET_TRACE (   X)    ACE_TRACE_IMPL (X)