DCSOlympus/backend/logger/src/interface.cpp
2024-01-03 16:19:16 +01:00

25 lines
450 B
C++

#include "framework.h"
#include "logger.h"
#include "interface.h"
#define LOGGER Logger::GetLogger()
void setLogDirectory(string m_dirPath)
{
LOGGER->setDirectory(m_dirPath);
}
void log(const string& message, bool addToJSON)
{
LOGGER->log(message, addToJSON);
}
void log(const wstring& message, bool addToJSON)
{
LOGGER->log(message, addToJSON);
}
void getLogsJSON(json::value& json, unsigned long long time)
{
LOGGER->toJSON(json, time);
}