NVIDIA DeepStream SDK API Reference

4.0.2 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvds_logger.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 NVIDIA Corporation. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  *
10  */
11 #ifndef NVDS_LOGGER_H
12 #define NVDS_LOGGER_H
13 
14 #include <syslog.h>
15 
16 #define DSLOG_SYSLOG_IDENT "DSLOG"
17 
18 //define additional categories here
19 #define DSLOG_CAT_CR "CR"
20 #define DSLOG_CAT_SG "SG"
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
31 void nvds_log_open();
32 
33 
37 void nvds_log_close();
38 
39 // Category is user (application) defined; priority is based on syslog levels
40 // data is message to be logged
49 void nvds_log(const char *category, int priority, const char *data, ...);
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif
void nvds_log_open()
Opens connection to logger.
void nvds_log(const char *category, int priority, const char *data,...)
Logs a message to locatioon as defined based on setup script.
void nvds_log_close()
Called when application no longer needs logging capability.