Define anj_log

Define Documentation

anj_log(Module, LogLevel, ...)

Logs a message.

Log statements are a subject to compile-time filtering. The level of this statement must be equal or higher than the configured level of the module, if defined, or the default level ( ANJ_LOG_LEVEL_DEFAULT ).

anj_log(my_module, L_DEBUG, "Hello %s, %d!", "world", 42);
Parameters:
  • Module – Name of the module that generates the message, given as a raw token.

  • LogLevel – Log level, specified as a name of anj_log_level_t (other than L_MUTED) with the leading ANJ_LOG_LEVEL_ omitted.