-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogger.h
31 lines (26 loc) · 1.14 KB
/
Logger.h
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
/******************************************************************************
* *
* Program : FileLogger *
* *
* Date : 15 / 04 / 2021 *
* *
* Programmer : Nikita Seliverstov (nikselko) *
* *
* *
******************************************************************************/
#pragma once
#include <ctime>
#include "FileWriter.h"
#include <fstream>
class Logger
{
public:
static Logger& get();
void log(const std::string& msg);
private:
string date_to_str(int return_mode); //return_mode: 0-datetime, 1-filename
string remove_trash(char* to_clean);
static Logger* inst_;
Logger();
FileWriter m_out;
};