-void cf_log(int level, const char *format, ...) {
- char msg[1024] = ""; // Size inherits from plugin_log()
-
- char const *name = plugin_get_ctx().name;
-
- va_list ap;
- va_start(ap, format);
- vsnprintf(msg, sizeof(msg), format, ap);
- va_end(ap);
-
- plugin_log(level, "%s plugin: %s", name, msg);
-} /* void cf_log */
-
-#define CF_ERROR(...) cf_log(LOG_ERR, __VA_ARGS__)
-#define CF_WARNING(...) cf_log(LOG_WARNING, __VA_ARGS__)
-