initial commit
This commit is contained in:
parent
5bf67bb9e0
commit
25015beb33
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||
}
|
||||
|
|
@ -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:
|
||||
|
||||
|
||||
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue