Detailed Description
- Author
- William R. Otte wotte.nosp@m.@dre.nosp@m..vand.nosp@m.erbi.nosp@m.lt.ed.nosp@m.u //
- Id:
- Log_Macros.h 94802 2011-10-20 09:46:10Z mcorino
Macros used for logging in DAnCE
Macro Definition Documentation
#define DANCE_DEBUG |
( |
|
L, |
|
|
|
X |
|
) |
| |
Value:do { \
{ \
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log X; \
} \
} while (0)
#define DANCE_DISABLE_TRACE |
( |
| ) |
do {} while (0) |
#define DANCE_ENABLE_TRACE |
( |
| ) |
do {} while (0) |
#define DANCE_ERROR |
( |
|
L, |
|
|
|
X |
|
) |
| |
Value:do { \
{ \
ace___->conditional_set (__FILE__, __LINE__, -1, __ace_error); \
ace___->log X; \
} \
} while (0)
#define DANCE_ERROR_BREAK |
( |
|
L, |
|
|
|
X |
|
) |
| { DANCE_ERROR (L, X); break; } |
#define DANCE_ERROR_RETURN |
( |
|
L, |
|
|
|
X, |
|
|
|
Y |
|
) |
| |
Value:do { \
{ \
ace___->conditional_set (__FILE__, __LINE__, Y, __ace_error); \
ace___->log X; \
return Y; \
} \
} while (0)
#define DANCE_LOG_DETAILED_TRACE 11 |
#define DANCE_LOG_EMERGENCY 1 |
Used for errors that cause the fatal shutdown of any portion of the infrastructure.
#define DANCE_LOG_ERROR 4 |
Used to log detailed error information at the point of failure.
#define DANCE_LOG_EVENT_TRACE 8 |
Used to trace significant actions within major/minor events. This will usually include starts for major/minor events.
#define DANCE_LOG_MAJOR_DEBUG_INFO 9 |
Used to display important configuration information that impacts the deployment process.
#define DANCE_LOG_MAJOR_EVENT 6 |
Used to indicate that a ``significant'' deployment event has completed. A 'major' event will depend heavily on the context in which it occurs. Major will include instance deployments/teardowns, process spawns, etc.
#define DANCE_LOG_MINOR_EVENT 7 |
Used to inficate a ``minor'' deployment event has completed. Minor events will usually change the state of a deployed instance, e.g. lifecycle changes (passivation, configuration complete), interceptor invocations, etc.
#define DANCE_LOG_NONFATAL_ERROR 3 |
Used for non-fatal deployment errors that do not cause deployment failure.
#define DANCE_LOG_TERMINAL_ERROR 2 |
Used for deployment errors at the point the error exits the process in question, or when a decision is made to cause the deployment to fail.
#define DANCE_LOG_TRACE 10 |
The following two statements are used to closely trace the execution of DAnCE code. If in doubt, a message should go into these categories. The difference between a TRACE and a DETAILED_TRACE will be largely a judgement call. These messages should be emitted using DANCE_TRACE_LOG (X, Y).
#define DANCE_LOG_WARNING 5 |
used to indicate that a questionable situation that doesn't cause deployment failure, but can cause undefined conditions.
#define DANCE_TRACE |
( |
|
X | ) |
do {} while (0) |
#define DANCE_TRACE_LOG |
( |
|
L, |
|
|
|
X |
|
) |
| |
Value:do { \
{ \
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log X; \
} \
} while (0)
#define DLINFO ACE_TEXT("(%P|%t) [%M] - %T - ") |
Variable Documentation