diff --git a/concordia-server/logger.cpp b/concordia-server/logger.cpp index 1b349b6..1f6b4ad 100644 --- a/concordia-server/logger.cpp +++ b/concordia-server/logger.cpp @@ -2,6 +2,7 @@ #include "log4cpp/Appender.hh" #include "log4cpp/FileAppender.hh" +#include "log4cpp/OstreamAppender.hh" #include "log4cpp/PatternLayout.hh" #include "log4cpp/Priority.hh" @@ -65,7 +66,8 @@ void Logger::logConcordiaSearchResult(const ConcordiaSearchResult & result) { } void Logger::_initialize(log4cpp::Category & root) { - log4cpp::Appender *appender = new log4cpp::FileAppender("default", LOG_FILE_PATH); + // log4cpp::Appender *appender = new log4cpp::FileAppender("default", LOG_FILE_PATH); + log4cpp::Appender *appender = new log4cpp::OstreamAppender("console", &std::cout); log4cpp::PatternLayout *layout = new log4cpp::PatternLayout(); layout->setConversionPattern("%d{%Y-%m-%d %H:%M:%S.%l}%c %x: %m%n"); appender->setLayout(layout); diff --git a/scripts/cmake_stubs/simplestart.sh.in b/scripts/cmake_stubs/simplestart.sh.in new file mode 100644 index 0000000..ea2f7cd --- /dev/null +++ b/scripts/cmake_stubs/simplestart.sh.in @@ -0,0 +1,4 @@ +#!/bin/sh + +spawn-fcgi -p 8000 -n "@COMPILED_BINARIES_PATH@"/concordia_server_process +