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.
48 lines
965 B
48 lines
965 B
#pragma once
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <iostream>
|
|
#include <list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "iflytop/core/basic/nlohmann/json.hpp"
|
|
#include "iflytop/core/core.hpp"
|
|
namespace iflytop {
|
|
using namespace std;
|
|
|
|
class DisinfectionLogger {
|
|
ENABLE_LOGGER(DisinfectionLogger);
|
|
ofstream m_logfile;
|
|
|
|
public:
|
|
DisinfectionLogger();
|
|
~DisinfectionLogger();
|
|
|
|
void initialize(string log_file_name);
|
|
void write(string log);
|
|
};
|
|
|
|
class DisinfectionLogsManager {
|
|
ENABLE_LOGGER(DisinfectionLogsManager);
|
|
|
|
public:
|
|
DisinfectionLogsManager(/* args */);
|
|
~DisinfectionLogsManager();
|
|
|
|
void initialize(){};
|
|
|
|
shared_ptr<DisinfectionLogger> createNewLogger(string log_file_name);
|
|
|
|
nlohmann::json getlogger(string log_file_name);
|
|
nlohmann::json getLoggerList();
|
|
|
|
private:
|
|
void list_dir_csvfile(string path, vector<string>& sv);
|
|
};
|
|
|
|
} // namespace iflytop
|