Skip to content
Permalink
b1393ff48b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
31 lines (28 sloc) 536 Bytes
#ifndef LOGGER_HPP
#define LOGGER_HPP
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <time.h>
#include <chrono>
#include <ctime>
#include <windows.h>
using namespace std;
class Logger {
public:
Logger(int l_Level);
~Logger();
void log(const char* fmt, ...);
static Logger* getLogger();
static string getPath();
private:
static Logger* logger;
int logging_Level;
string filename;
string filePath;
FILE* fp;
const char* time_Format = "%Y-%m-%d-%Hhr%Mm%Ss";
};
#endif