NVIDIA DeepStream SDK API Reference

6.4 Release
Logging API

Detailed Description

Defines an API for logging and debugging DeepStream applications.

Macros

#define DSLOG_SYSLOG_IDENT   "DSLOG"
 
#define DSLOG_CAT_CR   "DSLOG:CR"
 
#define DSLOG_CAT_SG   "DSLOG:SG"
 

Functions

void nvds_log_open ()
 Opens a connection to the logger. More...
 
void nvds_log_close ()
 Closes a connection to the logger. More...
 
void nvds_log (const char *category, int priority, const char *data,...)
 Logs a message to a location determined by the setup script. More...
 

Macro Definition Documentation

◆ DSLOG_CAT_CR

#define DSLOG_CAT_CR   "DSLOG:CR"

Definition at line 37 of file nvds_logger.h.

◆ DSLOG_CAT_SG

#define DSLOG_CAT_SG   "DSLOG:SG"

Definition at line 38 of file nvds_logger.h.

◆ DSLOG_SYSLOG_IDENT

#define DSLOG_SYSLOG_IDENT   "DSLOG"

Definition at line 34 of file nvds_logger.h.

Function Documentation

◆ nvds_log()

void nvds_log ( const char *  category,
int  priority,
const char *  data,
  ... 
)

Logs a message to a location determined by the setup script.

Parameters
[in]categoryA pointer to a string which specifies the category of this message. Categories are user-defined.
[in]prioritySeverity of the event to be logged, based on syslog levels. For more information, see ./src/utils/nvds_logger/README relative to the directory that contains the DeepStream SDK.
[in]dataA pointer to a string containing the message. The message may contain the format specifiers recognized by printf() in C/C++. data may be followeded by an arbitary number of parameters that supply values for the format specifiers.

◆ nvds_log_close()

void nvds_log_close ( )

Closes a connection to the logger.

◆ nvds_log_open()

void nvds_log_open ( )

Opens a connection to the logger.

This function must be called once per DeepStream application execution, prior to use of the logger.