Add console logger to replace original debug output.

This commit is contained in:
Adam Gu
2018-04-24 17:24:55 +08:00
parent bcfb1e4c92
commit 662b7c4112
17 changed files with 242 additions and 112 deletions
+5
View File
@@ -1,5 +1,8 @@
#include <iostream>
#include "webcc/logger.h"
#include "webcc/rest_server.h"
#include "book_services.h"
static void Help(const char* argv0) {
@@ -14,6 +17,8 @@ int main(int argc, char* argv[]) {
return 1;
}
LOG_INIT(webcc::VERB, 0);
unsigned short port = std::atoi(argv[1]);
std::size_t workers = 2;