|
RDK Documentation (Open Sourced RDK Components)
|
25 #include <unordered_map>
33 #define TEST_LOG_LEVEL eLOGLEVEL_TRACE
37 return chkLevel >= TEST_LOG_LEVEL;
42 std::ostringstream hexSs;
44 hexSs << std::hex << std::uppercase << std::setfill(
'0');
45 std::for_each(data.cbegin(), data.cend(), [&](
int c) { hexSs << std::setw(2) << c; });
58 va_start(args, format);
61 len = snprintf(gDebugPrintBuffer,
sizeof(gDebugPrintBuffer),
"[AAMP-PLAYER]");
65 std::cout << gDebugPrintBuffer << std::endl;
71 void logprintf_new(
int playerId,
const char* levelstr,
const char* file,
int line,
const char *format, ...)
76 va_start(args, format);
79 len = snprintf(gDebugPrintBuffer,
sizeof(gDebugPrintBuffer),
"[AAMP-PLAYER][%d][%s][%s][%d]", playerId, levelstr, file, line);
83 std::cout << gDebugPrintBuffer << std::endl;
89 void DumpBlob(
const unsigned char *ptr,
size_t len)
AAMP_LogLevel
Log level's of AAMP.
void LogNetworkError(const char *url, AAMPNetworkErrorType errorType, int errorCode, MediaType type)
Print the network error level logging for triage purpose.
void logprintf(const char *format,...)
Print logs to console / log fil.
void DumpBlob(const unsigned char *ptr, size_t len)
Compactly log blobs of binary data.
void LogNetworkLatency(const char *url, int downloadTime, int downloadThresholdTimeoutMs, MediaType type)
Print the network latency level logging for triage purpose.
AAMPNetworkErrorType
Log level network error enum.
bool isLogworthyErrorCode(int errorCode)
Check curl error before log on console.
void logprintf_new(int playerId, const char *levelstr, const char *file, int line, const char *format,...)
Print logs to console / log file.
bool isLogLevelAllowed(AAMP_LogLevel chkLevel)
To check the given log level is allowed to print mechanism.
Private functions and types used internally by AAMP.
#define MAX_DEBUG_LOG_BUFF_SIZE
Max debug log buffer size.
static std::string getHexDebugStr(const std::vector< uint8_t > &data)
Get a hex string representation of a vector of bytes.
void setLogLevel(AAMP_LogLevel newLevel)
Set the log level for print mechanism.