C/C++ API Reference
Loading...
Searching...
No Matches
Module config

Oveview

These configuration options differ from the options in pw_log/config.h in that these should be set at a module/compile unit level rather than a global level.

Macros

#define PW_LOG_MODULE_NAME   ""
 
#define PW_LOG_LEVEL   PW_LOG_LEVEL_DEFAULT
 
#define PW_LOG_FLAGS   PW_LOG_FLAGS_DEFAULT
 

Macro Definition Documentation

◆ PW_LOG_FLAGS

#define PW_LOG_FLAGS   PW_LOG_FLAGS_DEFAULT

Default: Flags

For log statements like LOG_INFO that don't have an explicit argument, this is used for the flags value.

◆ PW_LOG_LEVEL

#define PW_LOG_LEVEL   PW_LOG_LEVEL_DEFAULT

Default: Log level filtering

All log statements have a level, and this define sets the log level to the globally set default if PW_LOG_LEVEL was not already set by the module. This is compile-time filtering if the level is a constant.

◆ PW_LOG_MODULE_NAME

#define PW_LOG_MODULE_NAME   ""

Default: Module name

An empty string is used for the module name if it is not set.