From 05c47ab65e73b16887b7c7a1eb31acf6d364ef41 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 20 Mar 2026 23:48:32 +0000 Subject: Add logging :-o Adds virtual log function, real implementation writes to syslog. Test implementation writes to BOOST_TEST_MESSAGE, perf implementation discards. Replaces existing prints to stderr and adds logs to all key points. --- src/ingestor.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ingestor.hpp') diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 94e0d5c..e890bcf 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -106,6 +106,7 @@ namespace WebStat { static void sigtermHandler(int); void terminate(int); + [[gnu::format(printf, 3, 4)]] virtual void log(int level, const char * msgfmt, ...) const = 0; using CurlOperations = std::map>; uint32_t hostnameId; -- cgit v1.3