#include <stdarg.h>
#include <stdio.h>
#include <string>
#include <sstream>
#include <iostream>
#include <ctime>
Go to the source code of this file.
Classes | |
class | CSVLog |
singleton class for logging on the console and in a file, only interact with it via the defined macros More... | |
Macros | |
#define | LOG_T(...) |
log on trace level More... | |
#define | LOG_I(...) |
log on info level More... | |
#define | LOG_W(...) |
log on warning level More... | |
#define | LOG_E(...) |
log on error level More... | |
#define | LOG_SET_LVL_FROM_CONSOLE(...) CSVLog::getInstance().setLogLevelFromConsole() |
change log level via command line input More... | |
#define | LOG_SET_LVL_T(...) CSVLog::getInstance().setLogLevel(CSVLog::_TRACE) |
set log level to trace More... | |
#define | LOG_SET_LVL_I(...) CSVLog::getInstance().setLogLevel(CSVLog::_INFO) |
set log level to info More... | |
#define | LOG_SET_LVL_W(...) CSVLog::getInstance().setLogLevel(CSVLog::_WARNING) |
set log level to warning More... | |
#define | LOG_SET_LVL_E(...) CSVLog::getInstance().setLogLevel(CSVLog::_ERROR) |
set log level to error More... | |
#define | LOG_SET_LVL_CONSOLE_T(...) CSVLog::getInstance().setLogLevelConsole(CSVLog::_TRACE) |
set log level of console to trace More... | |
#define | LOG_SET_LVL_CONSOLE_I(...) CSVLog::getInstance().setLogLevelConsole(CSVLog::_INFO) |
set log level of console to info More... | |
#define | LOG_SET_LVL_CONSOLE_W(...) CSVLog::getInstance().setLogLevelConsole(CSVLog::_WARNING) |
set log level of console to warning More... | |
#define | LOG_SET_LVL_CONSOLE_E(...) CSVLog::getInstance().setLogLevelConsole(CSVLog::_ERROR) |
set log level of console to error More... | |
#define | LOG_SET_LVL_FILE_T(...) CSVLog::getInstance().setLogLevelFile(CSVLog::_TRACE) |
set log level of file to trace More... | |
#define | LOG_SET_LVL_FILE_I(...) CSVLog::getInstance().setLogLevelFile(CSVLog::_INFO) |
set log level of file to info More... | |
#define | LOG_SET_LVL_FILE_W(...) CSVLog::getInstance().setLogLevelFile(CSVLog::_WARNING) |
set log level of file to warning More... | |
#define | LOG_SET_LVL_FILE_E(...) CSVLog::getInstance().setLogLevelFile(CSVLog::_ERROR) |
set log level of file to error More... | |
#define | LOG_SET_SEPERATOR(char_seperator) CSVLog::getInstance().setSeperator(char_seperator) |
set seperator for file log More... | |
#define | LOG_SET_MAXLINES_FILE(int_maxLines) CSVLog::getInstance().setMaxLinesFile(int_maxLines) |
set max lines per file before a new file is generated More... | |
#define | LOG_SET_MAXLINES_BUFFER(int_maxLines) CSVLog::getInstance().setMaxLinesBuffer(int_maxLines) |
set max lines in buffer before buffer is written to file More... | |
#define | LOG_SET_TIMESTAMPVERSION(timestampversion_tsv) CSVLog::getInstance().setTimestampVersion(timestampversion_tsv) |
set time stamp version (0 for time of day or 1 for epoch) More... | |
#define | LOG_SET_LOWTHROUGHPUTMODE(bool_active) CSVLog::getInstance().setLowThroughputMode(bool_active) |
in low throughput mode, the buffer is written to the file after a certain maximum time even if the buffer is not full More... | |
#define | LOG_SET_MAXTIMEBETWEENWRITES(double_time_seconds) CSVLog::getInstance().setTimeBetweenWrites(double_time_seconds) |
maximum time between writing the buffer to the file in low throughput mode More... | |
#define | LOG_INIT(string_filename) CSVLog::getInstance().init(string_filename) |
initiates writing to a file More... | |
#define LOG_E | ( | ... | ) |
log on error level
#define LOG_I | ( | ... | ) |
log on info level
#define LOG_INIT | ( | string_filename | ) | CSVLog::getInstance().init(string_filename) |
initiates writing to a file
#define LOG_SET_LOWTHROUGHPUTMODE | ( | bool_active | ) | CSVLog::getInstance().setLowThroughputMode(bool_active) |
in low throughput mode, the buffer is written to the file after a certain maximum time even if the buffer is not full
#define LOG_SET_LVL_CONSOLE_E | ( | ... | ) | CSVLog::getInstance().setLogLevelConsole(CSVLog::_ERROR) |
set log level of console to error
#define LOG_SET_LVL_CONSOLE_I | ( | ... | ) | CSVLog::getInstance().setLogLevelConsole(CSVLog::_INFO) |
set log level of console to info
#define LOG_SET_LVL_CONSOLE_T | ( | ... | ) | CSVLog::getInstance().setLogLevelConsole(CSVLog::_TRACE) |
set log level of console to trace
#define LOG_SET_LVL_CONSOLE_W | ( | ... | ) | CSVLog::getInstance().setLogLevelConsole(CSVLog::_WARNING) |
set log level of console to warning
#define LOG_SET_LVL_E | ( | ... | ) | CSVLog::getInstance().setLogLevel(CSVLog::_ERROR) |
set log level to error
#define LOG_SET_LVL_FILE_E | ( | ... | ) | CSVLog::getInstance().setLogLevelFile(CSVLog::_ERROR) |
set log level of file to error
#define LOG_SET_LVL_FILE_I | ( | ... | ) | CSVLog::getInstance().setLogLevelFile(CSVLog::_INFO) |
set log level of file to info
#define LOG_SET_LVL_FILE_T | ( | ... | ) | CSVLog::getInstance().setLogLevelFile(CSVLog::_TRACE) |
set log level of file to trace
#define LOG_SET_LVL_FILE_W | ( | ... | ) | CSVLog::getInstance().setLogLevelFile(CSVLog::_WARNING) |
set log level of file to warning
#define LOG_SET_LVL_FROM_CONSOLE | ( | ... | ) | CSVLog::getInstance().setLogLevelFromConsole() |
change log level via command line input
#define LOG_SET_LVL_I | ( | ... | ) | CSVLog::getInstance().setLogLevel(CSVLog::_INFO) |
set log level to info
#define LOG_SET_LVL_T | ( | ... | ) | CSVLog::getInstance().setLogLevel(CSVLog::_TRACE) |
set log level to trace
#define LOG_SET_LVL_W | ( | ... | ) | CSVLog::getInstance().setLogLevel(CSVLog::_WARNING) |
set log level to warning
#define LOG_SET_MAXLINES_BUFFER | ( | int_maxLines | ) | CSVLog::getInstance().setMaxLinesBuffer(int_maxLines) |
set max lines in buffer before buffer is written to file
#define LOG_SET_MAXLINES_FILE | ( | int_maxLines | ) | CSVLog::getInstance().setMaxLinesFile(int_maxLines) |
set max lines per file before a new file is generated
#define LOG_SET_MAXTIMEBETWEENWRITES | ( | double_time_seconds | ) | CSVLog::getInstance().setTimeBetweenWrites(double_time_seconds) |
maximum time between writing the buffer to the file in low throughput mode
#define LOG_SET_SEPERATOR | ( | char_seperator | ) | CSVLog::getInstance().setSeperator(char_seperator) |
set seperator for file log
#define LOG_SET_TIMESTAMPVERSION | ( | timestampversion_tsv | ) | CSVLog::getInstance().setTimestampVersion(timestampversion_tsv) |
set time stamp version (0 for time of day or 1 for epoch)
#define LOG_T | ( | ... | ) |
log on trace level
#define LOG_W | ( | ... | ) |
log on warning level