NVIDIA DeepStream SDK API Reference

4.0 Release

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

Detailed Description

This API provides means for logging events in a DeepStream application for debugging.

Macros

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

Functions

void nvds_log_open ()
 Opens connection to logger. More...
 
void nvds_log_close ()
 Called when application no longer needs logging capability. More...
 
void nvds_log (const char *category, int priority, const char *data,...)
 Logs a message to locatioon as defined based on setup script. More...
 

Macro Definition Documentation

#define DSLOG_CAT_CR   "CR"

Definition at line 36 of file nvds_logger.h.

#define DSLOG_CAT_SG   "SG"

Definition at line 37 of file nvds_logger.h.

#define DSLOG_SYSLOG_IDENT   "DSLOG"

Definition at line 33 of file nvds_logger.h.

Function Documentation

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

Logs a message to locatioon as defined based on setup script.

Parameters
[in]categoryUser defined string to defined log category within application
[in]priorityseverity of log based on syslog levels (refer to README for more info)
[in]dataMessage to be logger formatted as C string as with printf
[in]...arguments corresponding to format
void nvds_log_close ( )

Called when application no longer needs logging capability.

void nvds_log_open ( )

Opens connection to logger.

Needs to be once per deepstream application execution, prior to use of the logger.