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.
25 lines
454 B
25 lines
454 B
#ifndef LOGGER_H
|
|
#define LOGGER_H
|
|
|
|
#include "LogContext.h"
|
|
#include "LogStrategy.h"
|
|
#include "LogWriter.h"
|
|
|
|
class Logger : LogContext
|
|
{
|
|
private:
|
|
LogStrategy * strategy = nullptr;
|
|
|
|
public:
|
|
Logger(LogStrategy * strategy)
|
|
{
|
|
this->strategy = strategy;
|
|
}
|
|
|
|
void log(std::string message)
|
|
{
|
|
this->strategy->log(message);
|
|
}
|
|
};
|
|
LogWriter* LogWriter::instance = nullptr;
|
|
#endif
|