|
OPIC
Object Persistence In C
|
Macros | |
| #define | OP_LOGGER_FACTORY(logger, logger_namespace) |
| Creates a logger with namespace. More... | |
| #define | OP_LOG_FATAL(LOGGER, ...) |
| Log fatal messages. More... | |
| #define | OP_LOG_ALERT(LOGGER, ...) |
| Log assert messages. More... | |
| #define | OP_LOG_CRIT(LOGGER, ...) |
| Log critcal messages. More... | |
| #define | OP_LOG_ERROR(LOGGER, ...) |
| Log error messages. More... | |
| #define | OP_LOG_WARN(LOGGER, ...) |
| Log warning messages. More... | |
| #define | OP_LOG_NOTICE(LOGGER, ...) |
| Log notice messages. More... | |
| #define | OP_LOG_INFO(LOGGER, ...) |
| Log info messages. More... | |
| #define | OP_LOG_DEBUG(LOGGER, ...) |
| Log debug messages. More... | |
| #define | OP_LOG_TRACE(LOGGER, ...) |
| Log trace messages. More... | |
| #define | OP_LOG_NOTEST(LOGGER, ...) |
| Log messages only in non unit environment. More... | |
| #define OP_LOGGER_FACTORY | ( | logger, | |
| logger_namespace | |||
| ) |
#include <opic/common/op_log.h>
Creates a logger with namespace.
| logger | logger variable name. |
| logger_namespace | logger namespace |
Example:
The code above prints
| #define OP_LOG_FATAL | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log fatal messages.
| #define OP_LOG_ALERT | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log assert messages.
| #define OP_LOG_CRIT | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log critcal messages.
| #define OP_LOG_ERROR | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log error messages.
| #define OP_LOG_WARN | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log warning messages.
| #define OP_LOG_NOTICE | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log notice messages.
| #define OP_LOG_INFO | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log info messages.
| #define OP_LOG_DEBUG | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log debug messages.
If the flag -DNDEBUG is defined, this logger would not print anything.
| #define OP_LOG_TRACE | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log trace messages.
If the flag -DNDEBUG is defined, this logger would not print anything.
| #define OP_LOG_NOTEST | ( | LOGGER, | |
| ... | |||
| ) |
#include <opic/common/op_log.h>
Log messages only in non unit environment.
1.8.13