AWS IoT Device SDK C:
Logging
Generate and print log messages
|
Return to main page ↑ |
Generic logging function that prints a single message.
This function is the generic logging function shared across all libraries. The library-specific logging function IotLog is implemented using this function. Like IotLog, this function is only available when LIBRARY_LOG_LEVEL is IOT_LOG_NONE.
In most cases, the library-specific logging function IotLog should be called instead of this function.
[in] | libraryLogSetting | The log level setting of the library, used to determine if the log message should be printed. Must be one of the Log levels. |
[in] | pLibraryName | The library name to print. See LIBRARY_LOG_NAME. |
[in] | messageLevel | The log level of the this message. See LIBRARY_LOG_LEVEL. |
[in] | pLogConfig | Pointer to a IotLogConfig_t. Optional; pass NULL to ignore. |
[in] | pFormat | Format string for the log message. |
[in] | ... | Arguments for format specification. |