NVIDIA DeepStream SDK API Reference

4.0.2 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvds_logger.h File Reference

Go to the source code of this file.

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 19 of file nvds_logger.h.

#define DSLOG_CAT_SG   "SG"

Definition at line 20 of file nvds_logger.h.

#define DSLOG_SYSLOG_IDENT   "DSLOG"

Definition at line 16 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.