Adding a general logger and integrating it with daggyr
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <pistache/http.h>
|
||||
|
||||
#include <daggy/DAGRunner.hpp>
|
||||
#include <daggy/GeneralLogger.hpp>
|
||||
#include <daggy/ThreadPool.hpp>
|
||||
#include <daggy/executors/task/DaggyRunnerTaskExecutor.hpp>
|
||||
#include <daggy/executors/task/ForkingTaskExecutor.hpp>
|
||||
@@ -25,7 +26,7 @@ namespace daggy::daggyr {
|
||||
{
|
||||
public:
|
||||
Server(const Pistache::Address &listenSpec, ssize_t maxCores,
|
||||
ssize_t maxMemoryMB);
|
||||
ssize_t maxMemoryMB, GeneralLogger &logger);
|
||||
~Server();
|
||||
|
||||
Server &setSSLCertificates(const fs::path &cert, const fs::path &key);
|
||||
@@ -56,6 +57,7 @@ namespace daggy::daggyr {
|
||||
Pistache::Rest::Description desc_;
|
||||
Pistache::Rest::Router router_;
|
||||
|
||||
GeneralLogger &logger_;
|
||||
executors::task::ForkingTaskExecutor executor_;
|
||||
|
||||
using TaskID = std::pair<DAGRunID, std::string>;
|
||||
|
||||
Reference in New Issue
Block a user