Split the LMS_LOG macro to work either with a ostream logger or a wt logger

This commit is contained in:
emeric
2019-11-19 18:14:23 +01:00
parent 9259ec19e1
commit b69e0c0c3d
32 changed files with 282 additions and 88 deletions
+5
View File
@@ -30,6 +30,8 @@
#include "database/Track.hpp"
#include "database/User.hpp"
#include "utils/StreamLogger.hpp"
using namespace Database;
#define CHECK(PRED) \
@@ -1253,6 +1255,9 @@ int main()
try
{
// log to stdout
ServiceProvider<Logger>::create<StreamLogger>(std::cout);
const std::filesystem::path tmpFile {std::tmpnam(nullptr)};
ScopedFileDeleter tmpFileDeleter {tmpFile};