macrootje er over heen voor functie naame en lijn nummer..
This commit is contained in:
parent
0d3fd346ba
commit
0dcc584827
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user