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

Classes

class  ACE::INet_Log

Namespaces

namespace  ACE

Defines

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

Macros used for logging in INet


Define 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 { \
    if (::ACE::INet_Log::debug_level_ >= L) \
      { \
        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)
#define INET_DISABLE_TRACE ( )    ACE_Trace::stop_tracing ()
#define INET_ENABLE_TRACE ( )    ACE_Trace::start_tracing ()
#define INET_ERROR (   L,
 
)
Value:
do { \
    if (::ACE::INet_Log::debug_level_ >= L) \
      { \
        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)
#define INET_ERROR_BREAK (   L,
 
)    { INET_ERROR (L, X); break; }
#define INET_ERROR_RETURN (   L,
  X,
 
)
Value:
do { \
    if (::ACE::INet_Log::debug_level_ >= L) \
      { \
        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)
#define INET_HEX_DUMP (   L,
 
)
Value:
do { \
    if (::ACE::INet_Log::debug_level_ >= L) \
      { \
        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)
#define INET_NTRACE   0
#define INET_TRACE (   X)    ACE_TRACE_IMPL (X)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines