NVIDIA DeepStream SDK API Reference

6.2 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__
 Copyright (c) 2021, NVIDIA CORPORATION. More...
 
#define dsInferError(fmt, ...)
 
#define dsInferWarning(fmt, ...)
 
#define dsInferInfo(fmt, ...)
 
#define dsInferDebug(fmt, ...)
 

Functions

void nvdsinfer::dsInferLogPrint__ (NvDsInferLogLevel level, const char *fmt,...)
 

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 45 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 27 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 39 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 33 of file nvdsinfer_logger.h.

◆ INFER_LOG_FORMAT_

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

Copyright (c) 2021, NVIDIA CORPORATION.

All rights reserved.

NVIDIA Corporation and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related documentation without an express license agreement from NVIDIA Corporation is strictly prohibited.

Definition at line 24 of file nvdsinfer_logger.h.

Variable Documentation

◆ gTrtLogger

std::unique_ptr<nvinfer1::ILogger> gTrtLogger
NVDSINFER_LOG_ERROR
@ NVDSINFER_LOG_ERROR
Definition: nvdsinfer.h:247
NVDSINFER_LOG_INFO
@ NVDSINFER_LOG_INFO
Definition: nvdsinfer.h:249
NVDSINFER_LOG_WARNING
@ NVDSINFER_LOG_WARNING
Definition: nvdsinfer.h:248
NVDSINFER_LOG_DEBUG
@ NVDSINFER_LOG_DEBUG
Definition: nvdsinfer.h:250
INFER_LOG_FORMAT_
#define INFER_LOG_FORMAT_(fmt)
Copyright (c) 2021, NVIDIA CORPORATION.
Definition: nvdsinfer_logger.h:24