-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCCLogger.hpp
More file actions
47 lines (36 loc) · 847 Bytes
/
CCLogger.hpp
File metadata and controls
47 lines (36 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// CCLogger.hpp
// ncc
//
// Created by yuki on 2022/04/21.
//
#ifndef CCLogger_hpp
#define CCLogger_hpp
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <fstream>
#include <unordered_map>
#include "uuid.hpp"
#include "CCExecutionInput.hpp"
#include "CommandResult.hpp"
#include "StringWriter.hpp"
using namespace std;
class CCLogger {
private:
shared_ptr<StringWriter> writer;
string uuid;
public:
CCLogger(shared_ptr<StringWriter> _writer) : writer(_writer) {
this->uuid = Uuid::newUuid().toString();
log_separator("Bigin");
}
~CCLogger();
void loginput(shared_ptr<CCExecutionInput> input);
void logresult(shared_ptr<CommandResult> result);
void close();
private:
void log_separator(string name);
};
#endif /* CCLogger_hpp */