Skip to content

Nick #14

Open
wants to merge 17 commits into
base: dev
Choose a base branch
from
1 change: 1 addition & 0 deletions bfs/include/AlgorithmServer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "CMakeConfig.h"
#include "DataSyncThread.hpp"
#include "Logger.hpp"

#define MAX_ACCEPT_FAILURES 5

Expand Down
1 change: 1 addition & 0 deletions bfs/include/DataSyncThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "Attribute.hpp"
#include "CMakeConfig.h"
#include "Logger.hpp"

// Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib
#pragma comment (lib, "Ws2_32.lib")
Expand Down
51 changes: 0 additions & 51 deletions bfs/include/Logger.h

This file was deleted.

31 changes: 31 additions & 0 deletions bfs/include/Logger.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#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
Binary file added bfs/scripts/buildbfs.pyc
Binary file not shown.
Loading