It’s still present in DeepStream 6.3 under /opt/nvidia/deepstream/deepstream/tools/, but I haven’t found any code examples on how to use it.
I’ve looked at the deepstream_test3 sample, but it creates a pipeline from scratch. I’m unable to understand how to use this example to integrate logging with DeepStreamApp.
Could you please provide some guidance or code examples on how to use the nvds_logger plugin for logging in DeepStreamApp?
Thanks for showing me the example with the Kafka broker.
For now, I’m looking for a logger similar to spdlog in C++ or logging in Python.
I’ve added nvds_logger to my makefile, and now I can include nvds_logger.h in DeepStreamApp. My application is a customization of the DeepStreamApp logic, implemented in the process_meta function.
Here’s how it works basicaly:
void process_meta (GstBuffer * buf, AppCtx * appCtx, NvDsBatchMeta * batch_meta) {
// For single source, always display text either with demuxer or with tiler
if (!appCtx->config.tiled_display_config.enable || appCtx->config.num_source_sub_bins == 1) {
appCtx->show_bbox_text = 1;
}
// __________ For each frame in the batch __________
for (NvDsMetaList * l_frame = batch_meta->frame_meta_list; l_frame != NULL; l_frame = l_frame->next) {
nvds_log_open();
g_print("Processing frame %i\n", log_i);
nvds_log("LOGIC", LOG_ERR, "Processing frame %i\n", log_i);
log_i++;
nvds_log_close();
...
I’ve run the ./setup_nvds_logger.sh script before running my code, specifying level 7 (debug) mode and a custom path. The log folder is created, but during my app’s inference, no log file is generated.
Do you have any advice on how to properly use the plugin?
I was able to integrate the nvds_logger plugin into my DeepStreamApp as you suggested, and it’s working perfectly. The guidance you provided made the implementation process smooth, and now the logs are being captured exactly as needed.