cppSimpleLogger/MainExample.cpp

40 lines
630 B
C++
Raw Normal View History

2018-10-16 23:34:45 +02:00
#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);
2018-10-17 17:03:07 +02:00
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!");
2018-10-16 23:34:45 +02:00
cout << "bye!\n";
return 0;
}