Kea 2.5.8
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.
 
#define LOG_ERROR(LOGGER, MESSAGE)
 Macro to conveniently test error output and log it.
 
#define LOG_FATAL(LOGGER, MESSAGE)
 Macro to conveniently test fatal output and log it.
 
#define LOG_INFO(LOGGER, MESSAGE)
 Macro to conveniently test info output and log it.
 
#define LOG_WARN(LOGGER, MESSAGE)
 Macro to conveniently test warn output and log it.
 

Macro Definition Documentation

◆ LOG_DEBUG

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

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))

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))

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))

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))

Macro to conveniently test warn output and log it.

Definition at line 26 of file macros.h.