Agora
1.2.0
Agora 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 | AGORA_LOG_LEVEL_OFF (0) |
#define | AGORA_LOG_LEVEL_ERROR (1) |
#define | AGORA_LOG_LEVEL_WARN (2) |
#define | AGORA_LOG_LEVEL_INFO (3) |
#define | AGORA_LOG_LEVEL_FRAME (4) |
#define | AGORA_LOG_LEVEL_SYMBOL (5) |
#define | AGORA_LOG_LEVEL_TRACE (6) |
#define | AGORA_LOG_LEVEL (AGORA_LOG_LEVEL_ERROR) |
#define | AGORA_LOG_DEFAULT_STREAM (stdout) |
#define | AGORA_LOG_STREAM (AGORA_LOG_DEFAULT_STREAM) |
#define | Agora_trace_file_or_default_stream (AGORA_LOG_DEFAULT_STREAM) |
#define | AGORA_LOG_INIT() ((void)0); |
#define | AGORA_LOG_SHUTDOWN() ((void)0); |
#define | AGORA_LOG_ERROR(...) |
#define | AGORA_LOG_WARN(...) ((void)0) |
#define | AGORA_LOG_INFO(...) ((void)0) |
#define | AGORA_LOG_FRAME(...) ((void)0) |
#define | AGORA_LOG_SYMBOL(...) ((void)0) |
#define | AGORA_LOG_TRACE(...) ((void)0) |
Functions | |
static std::string | AgoraGetFormattedTime () |
Return decent-precision time formatted as seconds:microseconds. More... | |
static void | AgoraOutputLogHeader (FILE *stream, int level) |
static bool | IsLogLevelReasonable () |
Logging macros that can be optimized out by the compiler.
#define AGORA_LOG_DEFAULT_STREAM (stdout) |
#define AGORA_LOG_ERROR | ( | ... | ) |
#define AGORA_LOG_FRAME | ( | ... | ) | ((void)0) |
#define AGORA_LOG_INFO | ( | ... | ) | ((void)0) |
#define AGORA_LOG_INIT | ( | ) | ((void)0); |
#define AGORA_LOG_LEVEL (AGORA_LOG_LEVEL_ERROR) |
#define AGORA_LOG_LEVEL_ERROR (1) |
#define AGORA_LOG_LEVEL_FRAME (4) |
#define AGORA_LOG_LEVEL_INFO (3) |
#define AGORA_LOG_LEVEL_OFF (0) |
#define AGORA_LOG_LEVEL_SYMBOL (5) |
#define AGORA_LOG_LEVEL_TRACE (6) |
#define AGORA_LOG_LEVEL_WARN (2) |
#define AGORA_LOG_SHUTDOWN | ( | ) | ((void)0); |
#define AGORA_LOG_STREAM (AGORA_LOG_DEFAULT_STREAM) |
#define AGORA_LOG_SYMBOL | ( | ... | ) | ((void)0) |
#define AGORA_LOG_TRACE | ( | ... | ) | ((void)0) |
#define AGORA_LOG_WARN | ( | ... | ) | ((void)0) |
#define Agora_trace_file_or_default_stream (AGORA_LOG_DEFAULT_STREAM) |
|
static |
Return decent-precision time formatted as seconds:microseconds.
|
inlinestatic |
|
inlinestatic |
Return true if the logging verbosity is reasonable for non-developer users of Agora