|
RENEWLab
1.1.0
RENEW project
|
Logging macros that can be optimized out by the compiler. More...
#include <ctime>#include <string>

Go to the source code of this file.
Macros | |
| #define | MLPD_LOG_LEVEL_OFF 0 |
| #define | MLPD_LOG_LEVEL_ERROR 1 |
| #define | MLPD_LOG_LEVEL_WARN 2 |
| #define | MLPD_LOG_LEVEL_INFO 3 |
| #define | MLPD_LOG_LEVEL_FRAME 4 |
| #define | MLPD_LOG_LEVEL_SYMBOL 5 |
| #define | MLPD_LOG_LEVEL_TRACE 6 |
| #define | MLPD_LOG_DEFAULT_STREAM stdout |
| #define | mlpd_trace_file_or_default_stream MLPD_LOG_DEFAULT_STREAM |
| #define | MLPD_LOG_LEVEL MLPD_LOG_LEVEL_TRACE |
| #define | MLPD_ERROR(...) |
| #define | MLPD_WARN(...) |
| #define | MLPD_INFO(...) |
| #define | MLPD_FRAME(...) |
| #define | MLPD_SYMBOL(...) |
| #define | MLPD_TRACE(...) |
Functions | |
| static std::string | mlpd_get_formatted_time () |
| Return decent-precision time formatted as seconds:microseconds. More... | |
| static void | mlpd_output_log_header (FILE *stream, int level) |
| static bool | is_log_level_reasonable () |
Logging macros that can be optimized out by the compiler.
| #define MLPD_ERROR | ( | ... | ) |
| #define MLPD_FRAME | ( | ... | ) |
| #define MLPD_INFO | ( | ... | ) |
| #define MLPD_LOG_DEFAULT_STREAM stdout |
| #define MLPD_LOG_LEVEL MLPD_LOG_LEVEL_TRACE |
| #define MLPD_LOG_LEVEL_ERROR 1 |
| #define MLPD_LOG_LEVEL_FRAME 4 |
| #define MLPD_LOG_LEVEL_INFO 3 |
| #define MLPD_LOG_LEVEL_OFF 0 |
| #define MLPD_LOG_LEVEL_SYMBOL 5 |
| #define MLPD_LOG_LEVEL_TRACE 6 |
| #define MLPD_LOG_LEVEL_WARN 2 |
| #define MLPD_SYMBOL | ( | ... | ) |
| #define MLPD_TRACE | ( | ... | ) |
| #define mlpd_trace_file_or_default_stream MLPD_LOG_DEFAULT_STREAM |
| #define MLPD_WARN | ( | ... | ) |
|
inlinestatic |
Return true if the logging verbosity is reasonable for non-developer users of Agora
|
static |
Return decent-precision time formatted as seconds:microseconds.


|
inlinestatic |
