|
NetCpp
v0.2
|
#include <fstream>#include <ostream>#include <string>#include <sstream>#include <sys/time.h>#include <mutex>#include <chrono>

Go to the source code of this file.
Classes | |
| class | Logger |
| Simple logger to log messages on file and console. More... | |
Namespaces | |
| namespace | log |
Macros | |
| #define | LOG_LEVEL 3 |
| #define | LOGGER_MULTITHREAD |
| #define | LOG_FILE(outputFile) |
| Macro to set the file used for logging. | |
| #define | ERROR(msg) |
| Macro to print error messages. | |
| #define | WARNING(msg) |
| Macro to print warning messages. | |
| #define | DEBUG(msg) |
| Macro to print debug messages. | |
| #define DEBUG | ( | msg | ) |
Macro to print debug messages.
Example of usage:
Definition at line 124 of file logger.hpp.
| #define ERROR | ( | msg | ) |
Macro to print error messages.
Example of usage:
Definition at line 81 of file logger.hpp.
| #define LOG_FILE | ( | outputFile | ) |
Macro to set the file used for logging.
| Base | name of the file used for logging (e.g. "/tmp/myproject") |
Example of configuration of the Logger: *
Definition at line 64 of file logger.hpp.
| #define LOG_LEVEL 3 |
Log levels: 0: no logging 1: log only errors messages 2: log warnings and error messages 3: log debug, warning and error messages
Definition at line 48 of file logger.hpp.
| #define LOGGER_MULTITHREAD |
Definition at line 52 of file logger.hpp.
| #define WARNING | ( | msg | ) |
Macro to print warning messages.
Example of usage:
Definition at line 101 of file logger.hpp.