diff --git a/crow.h b/crow.h index d2b71af75..82294e73a 100644 --- a/crow.h +++ b/crow.h @@ -8,6 +8,7 @@ #include #include "settings.h" +#include "logging.h" #include "http_server.h" #include "utility.h" #include "routing.h" diff --git a/logging.h b/logging.h index 576931c29..303e85722 100644 --- a/logging.h +++ b/logging.h @@ -5,6 +5,8 @@ #include #include #include +#include +#include using namespace std; @@ -97,11 +99,11 @@ namespace crow } -#define CROW_LOG_CRITICAL logger("CRITICAL", crow::LogLevel::CRITICAL) -#define CROW_LOG_ERROR logger("ERROR ", crow::LogLevel::ERROR) -#define CROW_LOG_WARNING logger("WARNING ", crow::LogLevel::WARNING) -#define CROW_LOG_INFO logger("INFO ", crow::LogLevel::INFO) -#define CROW_LOG_DEBUG logger("DEBUG ", crow::LogLevel::DEBUG) +#define CROW_LOG_CRITICAL crow::logger("CRITICAL", crow::LogLevel::CRITICAL) +#define CROW_LOG_ERROR crow::logger("ERROR ", crow::LogLevel::ERROR) +#define CROW_LOG_WARNING crow::logger("WARNING ", crow::LogLevel::WARNING) +#define CROW_LOG_INFO crow::logger("INFO ", crow::LogLevel::INFO) +#define CROW_LOG_DEBUG crow::logger("DEBUG ", crow::LogLevel::DEBUG)