| 
                 
                    AWS IoT Device SDK C:
                    Logging
                 
                
                    Generate and print log messages
                 
             | 
        
| Return to main page ↑ | 
Log message configuration struct. More...
#include <iot_logging.h>
Data Fields | |
| bool | hideLogLevel | 
| Don't print the log level string for this message.  | |
| bool | hideLibraryName | 
| Don't print the library name for this message.  | |
| bool | hideTimestring | 
| Don't print the timestring for this message.  | |
Log message configuration struct.
Parameter for: IotLog, IotLog_Generic
By default, log messages print the library name, log level, and a timestring. This struct can be passed to IotLog_Generic to disable one of the above components in the log message.
Example:
The code above prints the following message:
The timestring can be disabled as follows:
The resulting log message will be: