NVIDIA DeepStream SDK API Reference
9.1 Release
sources/includes/nvds_logger.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2018-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: Apache-2.0
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
35
#ifndef NVDS_LOGGER_H
36
#define NVDS_LOGGER_H
37
38
#include <syslog.h>
39
40
#define DSLOG_SYSLOG_IDENT "DSLOG"
41
42
//define additional categories here
43
#define DSLOG_CAT_CR "DSLOG:CR"
44
#define DSLOG_CAT_SG "DSLOG:SG"
45
46
47
#ifdef __cplusplus
48
extern
"C"
{
49
#endif
50
51
58
void
nvds_log_open
();
59
60
64
void
nvds_log_close
();
65
66
// Category is user (application) defined; priority is based on syslog levels
67
// data is message to be logged
84
void
nvds_log
(
const
char
*category,
int
priority,
const
char
*data, ...);
85
#ifdef __cplusplus
86
}
87
#endif
88
89
#endif
90
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.
Privacy Policy
|
Manage My Privacy
|
Do Not Sell or Share My Data
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Thu Jul 9 2026 11:48:20 | PR-09318-R32