Define AVS_COMMONS_WITH_EXTERNAL_LOG_LEVELS_HEADER
Defined in File avs_commons_config.h
Define Documentation
-
AVS_COMMONS_WITH_EXTERNAL_LOG_LEVELS_HEADER
If specified, the process of checking if avs_log should be written out takes place in compile time.
Specify an optional header with a list of modules for which log level is set. If a log level for specific module is not set, the DEFAULT level will be taken into account. Value of the default logging level is set to DEBUG, but can be overwritten in this header file with AVS_LOG_LEVEL_DEFAULT define. Messages with lower level than the one set will be removed during compile time. Possible values match avs_log_level_t.
That file should contain C preprocesor defines in the:
”#define AVS_LOG_LEVEL_FOR_MODULE_<Module> <Level>” format, where <Module> is the module name and <Level> is allowed logging level
”#define AVS_LOG_LEVEL_DEFAULT <Level>” format, where <Level> is the allowed logging level
Example file content:
#ifndef AVS_COMMONS_EXTERNAL_LOG_LEVELS_H #define AVS_COMMONS_EXTERNAL_LOG_LEVELS_H// global log level value #define AVS_LOG_LEVEL_DEFAULT INFO//for "coap" messages only WARNING and ERROR messages will be present #define AVS_LOG_LEVEL_FOR_MODULE_coap WARNING//logs are disable for "net" module #define AVS_LOG_LEVEL_FOR_MODULE_net QUIET#endif