initial commit

This commit is contained in:
2018-10-16 23:34:45 +02:00
parent 5bf67bb9e0
commit 25015beb33
6 changed files with 1276 additions and 0 deletions
+1169
View File
File diff suppressed because it is too large Load Diff
+26
View File
@@ -0,0 +1,26 @@
#include <stdio.h>
#include "logger.h"
using namespace std;
// g++ -Wall -o myTest myTest.cpp libftpclient.a -lcurl
int main(void)
{
cout << "Hello World!\n";
//CFTPClient* ftp = new CFTPClient(PRINT_LOG);
Logger* log = new Logger();
cout << "bye!\n";
return 0;
}
Executable
+25
View File
@@ -0,0 +1,25 @@
File Header:
- Time
- Camera ID
- Hardware ID
- Software ID
-------------------------------------------------------------------------
14/10/2018 07:35:19 [INFO] [Upload] successful!
14/10/2018 07:35:19 [WARNING] [CPU] could not convert string to float:
Executable
BIN
View File
Binary file not shown.
+26
View File
@@ -0,0 +1,26 @@
#include "logger.h"
// 02_Tuesday-16.-October-2018.log
// /logs/2018/09_September/
using namespace std;
Logger::Logger(){
cout << "Construtor" << endl;
logFile.open("testLog.txt", ios_base::app);
}
Logger::~Logger(){
cout << "Destrutor" << endl;
logFile.open("testLog.txt", ios_base::app);
}
+30
View File
@@ -0,0 +1,30 @@
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <iostream>
class Logger {
private:
ofstream logFile;
writeLog();
getTimestamp();
public:
Logger();
~Logger();
info(string s);
warning(string s);
error(string s);
};