Files
SilentDragonXLite/src/Logger/LogWriter.h
onryo 16b6d43786 Revert the merge revert
This reverts commit 3c2414028b.
2024-01-06 18:21:41 +01:00

25 lines
475 B
C++

// Copyright 2019-2024 The Hush developers
// Released under the GPLv3
#ifndef LOGWRITER_H
#define LOGWRITER_H
#include <string>
#include <fstream>
#include <sstream>
#include <ctime>
#include "LogType.h"
class LogWriter
{
public:
static LogWriter* getInstance();
std::string logfile = "";
void setLogFile(std::string file);
void write(LogType::TYPE t, std::string message);
private:
static LogWriter* instance;
};
#endif