NVIDIA DeepStream SDK API Reference

5.0 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Logging API

Detailed Description

Defines an API for logging and debugging DeepStream applications.


#define DSLOG_CAT_CR   "CR"
#define DSLOG_CAT_SG   "SG"


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

#define DSLOG_CAT_CR   "CR"

Definition at line 37 of file nvds_logger.h.

#define DSLOG_CAT_SG   "SG"

Definition at line 38 of file nvds_logger.h.


Definition at line 34 of file nvds_logger.h.

Function Documentation

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

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

[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.
void nvds_log_close ( )

Closes a connection to the logger.

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.