![]() |
RDK Documentation (Open Sourced RDK Components)
|
AampLogManager Class. More...
#include <AampLogManager.h>

Public Member Functions | |
| AampLogManager () | |
| AampLogManager constructor. | |
| void | LogNetworkLatency (const char *url, int downloadTime, int downloadThresholdTimeoutMs, MediaType type) |
| Print the network latency level logging for triage purpose. More... | |
| void | LogNetworkError (const char *url, AAMPNetworkErrorType errorType, int errorCode, MediaType type) |
| Print the network error level logging for triage purpose. More... | |
| void | ParseContentUrl (const char *url, std::string &contentType, std::string &location, std::string &symptom, MediaType type) |
| To get the issue symptom based on the error type for triage purpose. More... | |
| void | LogDRMError (int major, int minor) |
| Print the DRM error level logging for triage purpose. More... | |
| void | LogABRInfo (AAMPAbrInfo *pstAbrInfo) |
| Log ABR info for triage purpose. More... | |
| bool | isLogLevelAllowed (AAMP_LogLevel chkLevel) |
| To check the given log level is allowed to print mechanism. More... | |
| void | setPlayerId (int playerId) |
| Set PlayerId. More... | |
| int | getPlayerId () |
| Get PlayerId. More... | |
| void | setLogLevel (AAMP_LogLevel newLevel) |
| Set the log level for print mechanism. More... | |
| void | setLogAndCfgDirectory (char driveName) |
| Set log file and cfg directory index. | |
| bool | isLogworthyErrorCode (int errorCode) |
| Check curl error before log on console. More... | |
| const char * | getAampCfgPath (void) |
| Get aamp cfg directory. | |
| const char * | getAampCliCfgPath (void) |
| Get aampcli cfg directory. | |
Static Public Member Functions | |
| static std::string | getHexDebugStr (const std::vector< uint8_t > &data) |
| Get a hex string representation of a vector of bytes. | |
Data Fields | |
| bool | info |
| bool | debug |
| bool | trace |
| bool | gst |
| bool | curl |
| bool | progress |
| bool | failover |
| bool | stream |
| bool | curlHeader |
| bool | curlLicense |
| bool | logMetadata |
| bool | id3 |
| int | mPlayerId |
Static Public Attributes | |
| static bool | disableLogRedirection = false |
Private Attributes | |
| AAMP_LogLevel | aampLoglevel |
AampLogManager Class.
Definition at line 150 of file AampLogManager.h.
| void AampLogManager::LogNetworkLatency | ( | const char * | url, |
| int | downloadTime, | ||
| int | downloadThresholdTimeoutMs, | ||
| MediaType | type | ||
| ) |
Print the network latency level logging for triage purpose.
| [in] | url | - content url |
| [in] | downloadTime | - download time of the fragment or manifest |
| [in] | downloadThresholdTimeoutMs | - specified download threshold time out value |
| [in] | type | - media type |
Definition at line 105 of file aamplogging.cpp.
| void AampLogManager::LogNetworkError | ( | const char * | url, |
| AAMPNetworkErrorType | errorType, | ||
| int | errorCode, | ||
| MediaType | type | ||
| ) |
Print the network error level logging for triage purpose.
| [in] | url | - content url |
| [in] | errorType | - it can be http or curl errors |
| [in] | errorCode | - it can be http error or curl error code |
| [in] | type | - media type |
Definition at line 120 of file aamplogging.cpp.
| AampLogManager::ParseContentUrl | ( | const char * | url, |
| std::string & | contentType, | ||
| std::string & | location, | ||
| std::string & | symptom, | ||
| MediaType | type | ||
| ) |
To get the issue symptom based on the error type for triage purpose.
| [in] | url | - content url |
| [out] | contentType | - it could be a manifest or other audio/video/iframe tracks |
| [out] | location | - server location |
| [out] | symptom | - issue exhibiting scenario for error case |
| [in] | type | - media type |
Definition at line 169 of file aamplogging.cpp.
| AampLogManager::LogDRMError | ( | int | major, |
| int | minor | ||
| ) |
Print the DRM error level logging for triage purpose.
| [in] | major | - drm major error code |
| [in] | minor | - drm minor error code |
Definition at line 267 of file aamplogging.cpp.
| AampLogManager::LogABRInfo | ( | AAMPAbrInfo * | pstAbrInfo | ) |
Log ABR info for triage purpose.
| [in] | pstAbrInfo | - pointer to a structure which will have abr info to be logged |
Definition at line 355 of file aamplogging.cpp.
| bool AampLogManager::isLogLevelAllowed | ( | AAMP_LogLevel | chkLevel | ) |
To check the given log level is allowed to print mechanism.
| [in] | chkLevel | - log level |
| true | if the log level allowed for print mechanism |
Definition at line 50 of file aamplogging.cpp.
|
inline |
Set PlayerId.
| [in] | playerId | - Aamp Player Id |
Definition at line 243 of file AampLogManager.h.
|
inline |
| void AampLogManager::setLogLevel | ( | AAMP_LogLevel | newLevel | ) |
Set the log level for print mechanism.
| [in] | newLevel | - log level new value |
Definition at line 58 of file aamplogging.cpp.
| bool AampLogManager::isLogworthyErrorCode | ( | int | errorCode | ) |
Check curl error before log on console.
| [in] | errorCode | - curl error |
Definition at line 417 of file aamplogging.cpp.
| bool AampLogManager::info |
Info level
Definition at line 154 of file AampLogManager.h.
| bool AampLogManager::debug |
Debug logs
Definition at line 155 of file AampLogManager.h.
| bool AampLogManager::trace |
Trace level
Definition at line 156 of file AampLogManager.h.
| bool AampLogManager::gst |
Gstreamer logs
Definition at line 157 of file AampLogManager.h.
| bool AampLogManager::curl |
Curl logs
Definition at line 158 of file AampLogManager.h.
| bool AampLogManager::progress |
Download progress logs
Definition at line 159 of file AampLogManager.h.
| bool AampLogManager::failover |
server fail over logs
Definition at line 160 of file AampLogManager.h.
| bool AampLogManager::stream |
Display stream contents
Definition at line 161 of file AampLogManager.h.
| bool AampLogManager::curlHeader |
Curl header logs
Definition at line 162 of file AampLogManager.h.
| bool AampLogManager::curlLicense |
Curl logs for License request
Definition at line 163 of file AampLogManager.h.
| bool AampLogManager::logMetadata |
Timed metadata logs
Definition at line 164 of file AampLogManager.h.
| bool AampLogManager::id3 |
Display ID3 tag from stream logs
Definition at line 165 of file AampLogManager.h.
| int AampLogManager::mPlayerId |
Store PlayerId
Definition at line 167 of file AampLogManager.h.