apache / apache/pulsar-client-cpp

Support setting log level for C Api

Open
#137 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
71
Forks
90
Avg merge
2h 33m
Merged PRs (30d)
3

Description

Currently, the log level for C API is hardcoded as `INFO`:
https://github.com/apache/pulsar-client-cpp/blob/7a7b3aa5faa802fa354d2b2e41d38ce22241d700/lib/c/c_ClientConfiguration.cc#L81

Therefore, we cannot get the debug log in the C API or Nodejs client. It's better to support setting the log level for PulsarCLogger.

Contributor guide

Open the contributing guide

Research direction

Start in lib/c/c_ClientConfiguration.cc at the linked line where the C API log level is hardcoded to INFO, then trace how PulsarCLogger is configured for the C API and Nodejs client. Done means callers can set the log level and receive debug logging instead of being limited to INFO.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, nodejs
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.