Hush lite wallet
https://faq.hush.is/sdl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
475 B
24 lines
475 B
// Copyright 2019-2022 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
|
|
|