NVIDIA DeepStream SDK API Reference

7.0 Release
nvdsinfer_logger.h File Reference

Go to the source code of this file.

Namespaces

 nvdsinfer
 

Macros

#define INFER_LOG_FORMAT_(fmt)   "%s:%d " fmt, __FILE__, __LINE__
 
#define dsInferError(fmt, ...)
 
#define dsInferWarning(fmt, ...)
 
#define dsInferInfo(fmt, ...)
 
#define dsInferDebug(fmt, ...)
 

Functions

void nvdsinfer::dsInferLogPrint__ (NvDsInferLogLevel level, const char *fmt,...)
 Print the nvinferserver log messages as per the configured log level. More...
 

Variables

std::unique_ptr< nvinfer1::ILogger > gTrtLogger
 

Macro Definition Documentation

◆ dsInferDebug

#define dsInferDebug (   fmt,
  ... 
)
Value:
do { \
dsInferLogPrint__( \
NVDSINFER_LOG_DEBUG, INFER_LOG_FORMAT_(fmt), ##__VA_ARGS__); \
} while (0)

Definition at line 46 of file nvdsinfer_logger.h.

◆ dsInferError

#define dsInferError (   fmt,
  ... 
)
Value:
do { \
dsInferLogPrint__( \
NVDSINFER_LOG_ERROR, INFER_LOG_FORMAT_(fmt), ##__VA_ARGS__); \
} while (0)

Definition at line 28 of file nvdsinfer_logger.h.

◆ dsInferInfo

#define dsInferInfo (   fmt,
  ... 
)
Value:
do { \
dsInferLogPrint__( \
NVDSINFER_LOG_INFO, INFER_LOG_FORMAT_(fmt), ##__VA_ARGS__); \
} while (0)

Definition at line 40 of file nvdsinfer_logger.h.

◆ dsInferWarning

#define dsInferWarning (   fmt,
  ... 
)
Value:
do { \
dsInferLogPrint__( \
NVDSINFER_LOG_WARNING, INFER_LOG_FORMAT_(fmt), ##__VA_ARGS__); \
} while (0)

Definition at line 34 of file nvdsinfer_logger.h.

◆ INFER_LOG_FORMAT_

#define INFER_LOG_FORMAT_ (   fmt)    "%s:%d " fmt, __FILE__, __LINE__

Definition at line 25 of file nvdsinfer_logger.h.

Variable Documentation

◆ gTrtLogger

std::unique_ptr<nvinfer1::ILogger> gTrtLogger
NVDSINFER_LOG_ERROR
@ NVDSINFER_LOG_ERROR
Definition: nvdsinfer.h:250
NVDSINFER_LOG_INFO
@ NVDSINFER_LOG_INFO
Definition: nvdsinfer.h:252
NVDSINFER_LOG_WARNING
@ NVDSINFER_LOG_WARNING
Definition: nvdsinfer.h:251
NVDSINFER_LOG_DEBUG
@ NVDSINFER_LOG_DEBUG
Definition: nvdsinfer.h:253
INFER_LOG_FORMAT_
#define INFER_LOG_FORMAT_(fmt)
Definition: nvdsinfer_logger.h:25