added logging basics
This commit is contained in:
@ -18,6 +18,13 @@
|
||||
#define READ 0
|
||||
#define WRITE 1
|
||||
|
||||
// Logger Settings
|
||||
#define LOG_PATH "./reHDD.log"
|
||||
#define DESCRIPTION "reHDD - Copyright Hendrik Schutter 2020"
|
||||
#define DEVICE_ID "generic"
|
||||
#define SOFTWARE_VERSION "alpha"
|
||||
#define HARDWARE_VERSION "generic"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
@ -43,7 +50,9 @@ using namespace std;
|
||||
#include "shred/shred.h"
|
||||
#include "delete.h"
|
||||
#include "tui.h"
|
||||
#include "logger/logger.h"
|
||||
|
||||
extern Logger* logging;
|
||||
|
||||
template <typename T, typename I> T* iterator_to_pointer(I i)
|
||||
{
|
||||
@ -56,10 +65,12 @@ protected:
|
||||
|
||||
public:
|
||||
reHDD(void);
|
||||
void app_logic();
|
||||
static void app_logic();
|
||||
|
||||
private:
|
||||
|
||||
//static Logger* logging;
|
||||
|
||||
static void searchDrives(vector <Drive>* pvecDrives);
|
||||
static void printDrives(vector <Drive>* pvecDrives);
|
||||
static void filterIgnoredDrives(vector <Drive>* pvecDrives);
|
||||
@ -76,4 +87,4 @@ private:
|
||||
};
|
||||
|
||||
|
||||
#endif // REHDD_H_
|
||||
#endif // REHDD_H_
|
||||
|
Reference in New Issue
Block a user