12 #ifndef __NVDSINFER_LOGGER_H__
13 #define __NVDSINFER_LOGGER_H__
22 #define INFER_LOG_FORMAT_(fmt) fmt
24 #define INFER_LOG_FORMAT_(fmt) "%s:%d " fmt, __FILE__, __LINE__
27 #define dsInferError(fmt, ...) \
30 NVDSINFER_LOG_ERROR, INFER_LOG_FORMAT_(fmt), ##__VA_ARGS__); \
33 #define dsInferWarning(fmt, ...) \
36 NVDSINFER_LOG_WARNING, INFER_LOG_FORMAT_(fmt), ##__VA_ARGS__); \
39 #define dsInferInfo(fmt, ...) \
42 NVDSINFER_LOG_INFO, INFER_LOG_FORMAT_(fmt), ##__VA_ARGS__); \
45 #define dsInferDebug(fmt, ...) \
48 NVDSINFER_LOG_DEBUG, INFER_LOG_FORMAT_(fmt), ##__VA_ARGS__); \
55 extern std::unique_ptr<nvinfer1::ILogger>
gTrtLogger;
void dsInferLogPrint__(NvDsInferLogLevel level, const char *fmt,...)
NvDsInferLogLevel
Enum for the log levels of NvDsInferContext.
std::unique_ptr< nvinfer1::ILogger > gTrtLogger
NVIDIA DeepStream inference specifications