Fixed an issue with logging.h when it was used outside of the crow core

This commit is contained in:
Antony Woods 2014-05-29 17:10:18 +01:00
parent 639bacf024
commit cabf7469ce
2 changed files with 8 additions and 5 deletions

1
crow.h
View File

@ -8,6 +8,7 @@
#include <thread>
#include "settings.h"
#include "logging.h"
#include "http_server.h"
#include "utility.h"
#include "routing.h"

View File

@ -5,6 +5,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <sstream>
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)