SDMP_IOT / Mbed OS AdiSense1000_SmartBabySeat

Fork of Babyseat_NewFirmware_copy_sean by Ross O'Halloran

Embed: (wiki syntax)

« Back to documentation index

ADISENSE Host Logging functions

ADISENSE Host Logging functions
[ADISENSE Host Portability Layer]

Enumerations

enum  ADI_SENSE_LOG_LEVEL { ADI_SENSE_LOG_LEVEL_ERROR = 0, ADI_SENSE_LOG_LEVEL_WARN, ADI_SENSE_LOG_LEVEL_INFO, ADI_SENSE_LOG_LEVEL_DEBUG }

Functions

ADI_SENSE_RESULT adi_sense_LogOpen (ADI_SENSE_PLATFORM_LOG_CONFIG *pConfig)
 Initialise the Log interface and allocate resources.
void adi_sense_LogClose (void)
 Close the Log interface and free resources.
void adi_sense_LogLevel (ADI_SENSE_LOG_LEVEL maxLevel)
 Set the minimum priority level for the log messages.
void adi_sense_Log (ADI_SENSE_LOG_LEVEL level, const char *format,...)
 Print a log message to the platform log interface.

Enumeration Type Documentation

Log message priority levels

Enumerator:
ADI_SENSE_LOG_LEVEL_ERROR 

Error message priority

ADI_SENSE_LOG_LEVEL_WARN 

Warning message priority

ADI_SENSE_LOG_LEVEL_INFO 

Information message priority

ADI_SENSE_LOG_LEVEL_DEBUG 

Debug message priority

Definition at line 70 of file adi_sense_log.h.


Function Documentation

void adi_sense_Log ( ADI_SENSE_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 99 of file adi_sense_log.cpp.

void adi_sense_LogClose ( void   )

Close the Log interface and free resources.

Definition at line 79 of file adi_sense_log.cpp.

void adi_sense_LogLevel ( ADI_SENSE_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 91 of file adi_sense_log.cpp.

ADI_SENSE_RESULT adi_sense_LogOpen ( ADI_SENSE_PLATFORM_LOG_CONFIG *  pConfig )

Initialise the Log interface and allocate resources.

Returns:
Status

Definition at line 58 of file adi_sense_log.cpp.