Microchip® Advanced Software Framework

aws_iot_log.h File Reference

Logging macros for the SDK.

This file defines common logging macros with log levels to be used within the SDK. These macros can also be used in the IoT application code as a common way to output logs. The log levels can be tuned by modifying the makefile. Removing (commenting out) the IOT_* statement in the makefile disables that log level.

It is expected that the macros below will be modified or replaced when porting to specific hardware platforms as printf may not be the desired behavior.

#include <stdio.h>
#include <stdlib.h>

Macros

#define DEBUG(...)
 Debug level logging macro. More...
 
#define ERROR(...)
 Error level logging macro. More...
 
#define INFO(...)
 Info level logging macro. More...
 
#define WARN(...)
 Warn level logging macro. More...
 

#define ERROR (   ...)

Error level logging macro.

Macro to expose function, line number as well as desired log message.

#define INFO (   ...)

Info level logging macro.

Macro to expose desired log message. Info messages do not include automatic function names and line numbers.