mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Renamed src to backend
This commit is contained in:
25
backend/logger/src/interface.cpp
Normal file
25
backend/logger/src/interface.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user