Host API Example for the ADMW1001
ADMW Host Logging functions
[ADMW Host Portability Layer]
Enumerations | |
enum | ADMW_LOG_LEVEL { ADMW_LOG_LEVEL_ERROR = 0, ADMW_LOG_LEVEL_WARN, ADMW_LOG_LEVEL_INFO, ADMW_LOG_LEVEL_DEBUG } |
Functions | |
ADMW_RESULT | admw_LogOpen (ADMW_PLATFORM_LOG_CONFIG *pConfig) |
Initialise the Log interface and allocate resources. | |
void | admw_LogClose (void) |
Close the Log interface and free resources. | |
void | admw_LogLevel (ADMW_LOG_LEVEL maxLevel) |
Set the minimum priority level for the log messages. | |
void | admw_Log (ADMW_LOG_LEVEL level, const char *format,...) |
Print a log message to the platform log interface. |
Enumeration Type Documentation
enum ADMW_LOG_LEVEL |
Log message priority levels
- Enumerator:
ADMW_LOG_LEVEL_ERROR Error message priority
ADMW_LOG_LEVEL_WARN Warning message priority
ADMW_LOG_LEVEL_INFO Information message priority
ADMW_LOG_LEVEL_DEBUG Debug message priority
Definition at line 70 of file admw_log.h.
Function Documentation
void admw_Log | ( | ADMW_LOG_LEVEL | level, |
const char * | format, | ||
... | |||
) |
Print a log message to the platform log interface.
- Parameters:
-
[in] level Log message priority level [in] format Format string and variable argument list, if any
Definition at line 97 of file admw_log.cpp.
void admw_LogClose | ( | void | ) |
Close the Log interface and free resources.
Definition at line 78 of file admw_log.cpp.
void admw_LogLevel | ( | ADMW_LOG_LEVEL | maxLevel ) |
Set the minimum priority level for the log messages.
- Parameters:
-
[in] maxLevel priority level
Sets the log priority level. Messages with priority lower that this level will not be passed to the log interface.
Definition at line 89 of file admw_log.cpp.
ADMW_RESULT admw_LogOpen | ( | ADMW_PLATFORM_LOG_CONFIG * | pConfig ) |
Initialise the Log interface and allocate resources.
- Returns:
- Status
- ADMW_SUCCESS Call completed successfully.
- ADMW_NO_MEM Failed to allocate memory for device context.
Definition at line 58 of file admw_log.cpp.
Generated on Wed Jul 13 2022 03:04:55 by 1.7.2