cppSimpleLogger/MainExample.cpp

40 lines
630 B
C++

#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);
struct sID id;
id.description = "CCTV_Radar © CopterSicht 2018";
id.deviceID = "Camera04";
id.softwareID = "0.1.1.8";
id.hardwareID = "7.77.9";
Logger* logging = new Logger("./test.txt", id);
logging->info("Alle Systeme laufen!");
logging->warning("Alle Systeme laufen!");
logging->error("Alle Systeme laufen!");
cout << "bye!\n";
return 0;
}