Log_Macros.h File Reference

#include "ace/Trace.h"
Include dependency graph for Log_Macros.h:
This graph shows which files directly or indirectly include this file:

Defines

#define CLINFO   "(%P|%t) [%M] - %T - "
#define CIAO_TRACE(X)   ACE_TRACE_IMPL(X)
#define CIAO_ENABLE_TRACE()   ACE_Trace::start_tracing ()
#define CIAO_DISABLE_TRACE()   ACE_Trace::stop_tracing ()
#define CLINFO   "%I(%P|%t) [%M] - %T - "
#define CIAO_ERROR(X)
#define CIAO_DEBUG(X)
#define CIAO_ERROR_RETURN(X, Y)
#define CIAO_ERROR_BREAK(X)   { CIAO_ERROR (X); break; }

Detailed Description

Author:
William R. Otte <wotte@dre.vanderbilt.edu>

Macros used for logging in CIAO.


Define Documentation

#define CIAO_DEBUG (  ) 
Value:
do { \
    int __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 CIAO_DISABLE_TRACE (  )     ACE_Trace::stop_tracing ()
 
#define CIAO_ENABLE_TRACE (  )     ACE_Trace::start_tracing ()
#define CIAO_ERROR (  ) 
Value:
do { \
    int __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 CIAO_ERROR_BREAK (  )     { CIAO_ERROR (X); break; }
#define CIAO_ERROR_RETURN ( X,
 ) 
Value:
do { \
    int __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 CIAO_TRACE (  )     ACE_TRACE_IMPL(X)
#define CLINFO   "%I(%P|%t) [%M] - %T - "
#define CLINFO   "(%P|%t) [%M] - %T - "
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Fri Sep 11 04:45:45 2009 for CIAO by  doxygen 1.6.1