NVIDIA DeepStream SDK API Reference
7.1 Release
nvds_logger.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2018-2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4
*
5
* NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6
* property and proprietary rights in and to this material, related
7
* documentation and any modifications thereto. Any use, reproduction,
8
* disclosure or distribution of this material and related documentation
9
* without an express license agreement from NVIDIA CORPORATION or
10
* its affiliates is strictly prohibited.
11
*/
12
30
#ifndef NVDS_LOGGER_H
31
#define NVDS_LOGGER_H
32
33
#include <syslog.h>
34
35
#define DSLOG_SYSLOG_IDENT "DSLOG"
36
37
//define additional categories here
38
#define DSLOG_CAT_CR "DSLOG:CR"
39
#define DSLOG_CAT_SG "DSLOG:SG"
40
41
42
#ifdef __cplusplus
43
extern
"C"
{
44
#endif
45
46
53
void
nvds_log_open
();
54
55
59
void
nvds_log_close
();
60
61
// Category is user (application) defined; priority is based on syslog levels
62
// data is message to be logged
79
void
nvds_log
(
const
char
*category,
int
priority,
const
char
*data, ...);
80
#ifdef __cplusplus
81
}
82
#endif
83
84
#endif
85
nvds_log_open
void nvds_log_open()
Opens a connection to the logger.
nvds_log
void nvds_log(const char *category, int priority, const char *data,...)
Logs a message to a location determined by the setup script.
nvds_log_close
void nvds_log_close()
Closes a connection to the logger.
Advance Information | Subject to Change | Generated by NVIDIA | Mon Oct 14 2024 13:27:45 | PR-09318-R32