Description: This file defines macros for logging messages.
NVIDIA Multimedia API: Logging API
Definition in file NvLogging.h.
Go to the source code of this file.
Macros | |
#define | LOG_LEVEL_INFO 0 |
Specifies the log level for Information messages. More... | |
#define | LOG_LEVEL_ERROR 1 |
Specifies the log level for Error messages. More... | |
#define | LOG_LEVEL_WARN 2 |
Specifies the log level for Warning messages. More... | |
#define | LOG_LEVEL_DEBUG 3 |
Specifies the log level for Debug messages. More... | |
#define | DEFAULT_LOG_LEVEL LOG_LEVEL_ERROR |
Specifies the default log level. More... | |
#define | PRINT_MSG(level, str1) |
Prints log messages. More... | |
#define | INFO_MSG(str) PRINT_MSG(LOG_LEVEL_INFO, str) |
Prints a log message of level LOG_LEVEL_INFO. More... | |
#define | COMP_INFO_MSG(str) INFO_MSG("<" << comp_name << "> " << str) |
Prints a component-specific log message of level LOG_LEVEL_INFO. More... | |
#define | CAT_INFO_MSG(str) INFO_MSG("<" CAT_NAME "> " << str) |
Prints a category-specific (Component type) system error log message of level LOG_LEVEL_INFO. More... | |
#define | ERROR_MSG(str) PRINT_MSG(LOG_LEVEL_ERROR, str) |
Prints a log message of level LOG_LEVEL_ERROR. More... | |
#define | COMP_ERROR_MSG(str) ERROR_MSG("<" << comp_name << "> " << str) |
Prints a component-specific log message of level LOG_LEVEL_ERROR. More... | |
#define | CAT_ERROR_MSG(str) ERROR_MSG("<" CAT_NAME "> " << str) |
Prints a category-specific (Component type) log message of level LOG_LEVEL_ERROR. More... | |
#define | SYS_ERROR_MSG(str) ERROR_MSG(str << ": " << strerror(errno)) |
Prints a system error log message of level LOG_LEVEL_ERROR with the string description of the errno value appended. More... | |
#define | COMP_SYS_ERROR_MSG(str) SYS_ERROR_MSG("<" << comp_name << "> " << str) |
Prints a component-specific system error log message of level LOG_LEVEL_ERROR. More... | |
#define | CAT_SYS_ERROR_MSG(str) SYS_ERROR_MSG("<" CAT_NAME "> " << str) |
Prints a category-specific (Component type) system error log message of level LOG_LEVEL_ERROR. More... | |
#define | WARN_MSG(str) PRINT_MSG(LOG_LEVEL_WARN, str) |
Prints a log message of level LOG_LEVEL_WARN. More... | |
#define | COMP_WARN_MSG(str) WARN_MSG("<" << comp_name << "> :" << str) |
Prints a component-specific log message of level LOG_LEVEL_WARN. More... | |
#define | CAT_WARN_MSG(str) WARN_MSG("<" CAT_NAME "> " << str) |
Print a category-specific (Component type) log message of level LOG_LEVEL_WARN. More... | |
#define | DEBUG_MSG(str) PRINT_MSG(LOG_LEVEL_DEBUG, str) |
Prints a log message of level LOG_LEVEL_DEBUG. More... | |
#define | COMP_DEBUG_MSG(str) DEBUG_MSG("<" << comp_name << "> :" << str) |
Prints a component-specific log message of level LOG_LEVEL_DEBUG. More... | |
#define | CAT_DEBUG_MSG(str) DEBUG_MSG("<" CAT_NAME "> " << str) |
Prints a category-specific (Component type) log message of level LOG_LEVEL_DEBUG. More... | |
Variables | |
int | log_level |
Holds the current log level at runtime by assignment of one of the LOG_LEVEL_* values. More... | |