OPIC
Object Persistence In C
Macros | Functions
op_log.h File Reference

Go to the source code of this file.

Macros

#define OP_LOGGER_FACTORY(logger, logger_namespace)
 Creates a logger with namespace. More...
 
#define OP_LOG_ARGS(LOGGER, CATEGORY, MESSAGE, ...)
 
#define OP_LOG_NO_ARGS(LOGGER, CATEGORY, MESSAGE)
 
#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...
 

Functions

OP_BEGIN_DECLS void opic_log4c_init ()
 

Detailed Description

Author
Felix Chern
Date
Sep 3, 2016

Definition in file op_log.h.

Macro Definition Documentation

◆ OP_LOG_ARGS

#define OP_LOG_ARGS (   LOGGER,
  CATEGORY,
  MESSAGE,
  ... 
)
Value:
log4c_category_log(LOGGER, CATEGORY, "%s():%d " \
MESSAGE, __func__, __LINE__, __VA_ARGS__)

Definition at line 71 of file op_log.h.

◆ OP_LOG_NO_ARGS

#define OP_LOG_NO_ARGS (   LOGGER,
  CATEGORY,
  MESSAGE 
)
Value:
log4c_category_log(LOGGER, CATEGORY, "%s():%d " \
MESSAGE, __func__, __LINE__)

Definition at line 75 of file op_log.h.