# include/NvLogging.h File Reference

NVIDIA Eagle Eye API: Logging API More...

`#include <iostream>`

Go to the source code of this file.

## Defines

#define | LOG_LEVEL_INFO 0
| Specifies the log level for Information messages.
#define | LOG_LEVEL_ERROR 1
| Specifies the log level for Error messages.
#define | LOG_LEVEL_WARN 2
| Specifies the log level for Warning messages.
#define | LOG_LEVEL_DEBUG 3
| Specifies the log level for Debug messages.
#define | DEFAULT_LOG_LEVEL LOG_LEVEL_INFO
| Specifies the default log level.
#define | PRINT_MSG(level, str)
| Prints log messages.
#define | INFO_MSG(str) PRINT_MSG(LOG_LEVEL_INFO, str)
| Prints a log message of level `LOG_LEVEL_INFO`.
#define | COMP_INFO_MSG(str) ERROR_MSG("<" << comp_name << "> " << str)
| Prints a component-specific log message of level `LOG_LEVEL_INFO`.
#define | CAT_INFO_MSG(str) ERROR_MSG("<" CAT_NAME "> " << str)
| Prints a category-specific (Component type) system error log message of level `LOG_LEVEL_INFO`.
#define | ERROR_MSG(str) PRINT_MSG(LOG_LEVEL_ERROR, str)
| Prints a log message of level `LOG_LEVEL_ERROR`.
#define | COMP_ERROR_MSG(str) ERROR_MSG("<" << comp_name << "> " << str)
| Prints a component-specific log message of level `LOG_LEVEL_ERROR`.
#define | CAT_ERROR_MSG(str) ERROR_MSG("<" CAT_NAME "> " << str)
| Prints a category-specific (Component type) log message of level `LOG_LEVEL_ERROR`.
#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.
#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`.
#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`.
#define | WARN_MSG(str) PRINT_MSG(LOG_LEVEL_WARN, str)
| Prints a log message of level `LOG_LEVEL_WARN`.
#define | COMP_WARN_MSG(str) WARN_MSG("<" << comp_name << "> :" << str)
| Prints a component-specific log message of level `LOG_LEVEL_WARN`.
#define | CAT_WARN_MSG(str) WARN_MSG("<" CAT_NAME "> " << str)
| Print a category-specific (Component type) log message of level `LOG_LEVEL_WARN`.
#define | DEBUG_MSG(str) PRINT_MSG(LOG_LEVEL_DEBUG, str)
| Prints a log message of level `LOG_LEVEL_DEBUG`.
#define | COMP_DEBUG_MSG(str) DEBUG_MSG("<" << comp_name << "> :" << str)
| Prints a component-specific log message of level `LOG_LEVEL_DEBUG`.
#define | CAT_DEBUG_MSG(str) DEBUG_MSG("<" CAT_NAME "> " << str)
| Prints a category-specific (Component type) log message of level `LOG_LEVEL_DEBUG`.

## Variables

int | log_level
| Holds the current log level at runtime by assignment of one of the `LOG_LEVEL_*` values.

## Detailed Description

NVIDIA Eagle Eye API: Logging API

Description: This file defines macros for logging messages.

Definition in file NvLogging.h.