diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-20 23:48:32 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-20 23:48:32 +0000 |
| commit | 05c47ab65e73b16887b7c7a1eb31acf6d364ef41 (patch) | |
| tree | 837a65e5460154a8c00c91519a8ea313445ad1dd /src/ingestor.hpp | |
| parent | 0f5a0a8e2d43774288d4d6ea747278ca6e085a2a (diff) | |
| download | webstat-05c47ab65e73b16887b7c7a1eb31acf6d364ef41.tar.bz2 webstat-05c47ab65e73b16887b7c7a1eb31acf6d364ef41.tar.xz webstat-05c47ab65e73b16887b7c7a1eb31acf6d364ef41.zip | |
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.
Diffstat (limited to 'src/ingestor.hpp')
| -rw-r--r-- | src/ingestor.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<CURL *, std::unique_ptr<CurlOperation>>; uint32_t hostnameId; |
