sensor result structure modified

Embed: (wiki syntax)

« Back to documentation index

ADMW Host Logging functions

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

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]levelLog message priority level
[in]formatFormat 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]maxLevelpriority 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

Definition at line 58 of file admw_log.cpp.