This is an example of the CLog class.
This example shows the differents log options provided by the class which include logging:
- messages
- basic data types such as int, double, etc.
- vectors of basic data types.
#include <stdio.h>
#include <unistd.h>
#include <iostream>
#include "log.h"
int main(int argc,char *argv[])
{
int int_test=5;
double real_test=4.4;
std::string string_test("string test");
std::vector<int> int_vector_test;
std::vector<float> real_vector_test;
CLog main_log(
"log_test");
main_log.
log(string_test);
int_vector_test.push_back(1);
int_vector_test.push_back(2);
int_vector_test.push_back(3);
int_vector_test.push_back(4);
int_vector_test.push_back(5);
real_vector_test.push_back(1.1);
real_vector_test.push_back(2.2);
real_vector_test.push_back(3.3);
real_vector_test.push_back(4.4);
real_vector_test.push_back(5.5);
real_vector_test.push_back(6.6);
}