macrootje er over heen voor functie naame en lijn nummer..

This commit is contained in:
whaffman 2025-09-18 21:19:27 +02:00
parent 0d3fd346ba
commit 0dcc584827
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@
#include <unordered_map>
#include <webserv/log/LogLevel.hpp>
#define LOG_INFO(message) \
Log::info(message, std::map<std::string, std::string>{{"file", __FILE__}, {"line", std::to_string(__LINE__)}, {"function", __FUNCTION__}})
class Channel; // Forward declaration
class Log

View File

@ -17,7 +17,7 @@ int main(int argc, char **argv)
}
ConfigManager::getInstance().init(argv[1]); // NOLINT
Server server(ConfigManager::getInstance());
LOG_INFO("HALLO WERELD!");
Log::info("test log message: server starting...", {{"port", "8080"}, {"mode", "production"}});
server.start();