Kea  2.3.9
macros.h File Reference
#include <log/logger.h>
#include <log/log_dbglevels.h>
+ Include dependency graph for macros.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG_DEBUG(LOGGER, LEVEL, MESSAGE)
 Macro to conveniently test debug output and log it. More...
 
#define LOG_ERROR(LOGGER, MESSAGE)
 Macro to conveniently test error output and log it. More...
 
#define LOG_FATAL(LOGGER, MESSAGE)
 Macro to conveniently test fatal output and log it. More...
 
#define LOG_INFO(LOGGER, MESSAGE)
 Macro to conveniently test info output and log it. More...
 
#define LOG_WARN(LOGGER, MESSAGE)
 Macro to conveniently test warn output and log it. More...
 

Macro Definition Documentation

◆ LOG_DEBUG

#define LOG_DEBUG (   LOGGER,
  LEVEL,
  MESSAGE 
)
Value:
if (!(LOGGER).isDebugEnabled((LEVEL))) { \
} else \
(LOGGER).debug((LEVEL), (MESSAGE))
@ debug
Definition: db_log.h:119

Macro to conveniently test debug output and log it.

Definition at line 14 of file macros.h.

◆ LOG_ERROR

#define LOG_ERROR (   LOGGER,
  MESSAGE 
)
Value:
if (!(LOGGER).isErrorEnabled()) { \
} else \
(LOGGER).error((MESSAGE))
@ error
Definition: db_log.h:116

Macro to conveniently test error output and log it.

Definition at line 32 of file macros.h.

◆ LOG_FATAL

#define LOG_FATAL (   LOGGER,
  MESSAGE 
)
Value:
if (!(LOGGER).isFatalEnabled()) { \
} else \
(LOGGER).fatal((MESSAGE))
@ fatal
Definition: db_log.h:115

Macro to conveniently test fatal output and log it.

Definition at line 38 of file macros.h.

◆ LOG_INFO

#define LOG_INFO (   LOGGER,
  MESSAGE 
)
Value:
if (!(LOGGER).isInfoEnabled()) { \
} else \
(LOGGER).info((MESSAGE))
@ info
Definition: db_log.h:118

Macro to conveniently test info output and log it.

Definition at line 20 of file macros.h.

◆ LOG_WARN

#define LOG_WARN (   LOGGER,
  MESSAGE 
)
Value:
if (!(LOGGER).isWarnEnabled()) { \
} else \
(LOGGER).warn((MESSAGE))
@ warn
Definition: db_log.h:117

Macro to conveniently test warn output and log it.

Definition at line 26 of file macros.h.