From c0e1c65491f9d6726b16f107c25f2e5787e7e2ec Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Thu, 7 May 2020 19:53:51 +0200 Subject: add mock of our logging facility --- include/log.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/log.h (limited to 'include') diff --git a/include/log.h b/include/log.h new file mode 100644 index 0000000..91d968f --- /dev/null +++ b/include/log.h @@ -0,0 +1,17 @@ +#ifndef ZTDNS_LOG_H +#define ZTDNS_LOG_H + +#include + +#define ERROR 1 +#define WARN 2 +#define INFO 3 +#define DEBUG 4 + +/* This function will change later - it's just a "mock", so that every1 can + * already write code with ztdns_log() :) + * Use like ztdns_log(DEBUG, "something wrong happened! %s", errorstring); + */ +#define ztdns_log(level, printfargs...) printf(printfargs) + +#endif /* ZTDNS_LOG_H */ -- cgit v1.2.3