blob: fab2f25900bb758e420c53add1e17d585502190c (
plain)
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
48
49
50
51
52
53
54
55
56
57
|
#include "../include/logger.hpp"
class Two {
public:
Two() {
}
void WritetoLog() {
Logger::Get().log("THIS IS A NEEEEEWWWW TEST!!!!!");
Logger::Get().logErr("ERRORRRRRRRR");
Logger::Get().printLog();
}
void TryPrint() {
Logger::Get().printLog();
}
};
class One {
public:
Two two;
One() {
two = Two();
}
void OpenLog() {
Logger::Get().openLog("output.txt");
two.WritetoLog();
Logger::Get().closeLog();
two.TryPrint();
}
};
int main(int argc, char* argv[]) {
// Logger::Get().openLog("output.txt");
// Logger::Get().log("Testing Info aksdjflkas lksajfdlasjfaowe aslkdjf alskjf asodfj03945430 0349534 5039485 345");
// Logger::Get().log("Testing Info Just some stuff");
// Logger::Get().log("Testing something words words words");
// Logger::Get().logErr("Testing Error lksdj fa 3459374");
// Logger::Get().log("Testing blah blah blah blah blah lbal lab lbas labal abala");
// Logger::Get().log("Testing Info aksdjflkas l11111111111111111111111111111111111111111485 345");
// Logger::Get().logErr("Testing Error Some other type of error");
// Logger::Get().logErr("Testing Error Another one");
// Logger::Get().closeLog();
// //log.printLog();
One one = One();
one.OpenLog();
}
|