mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
25 lines
450 B
C++
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);
|
|
} |