-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
librdkafka 0.8 logger callback error #15
Comments
I cant reproduce this issue, could you provide the relevant parts of your code? This works for me: #include <librdkafka/rdkafka.h> .... int main (...) { |
Hi, Magnus. I find that I used "rk->rk_name" in my c++ code. This causes the compilation error above since the compiler could not find the definition of "rd_kafka_t". What a stupid mistake! |
Did you mean to reopen this issue? |
No. Actually, I am new to Github. This is a misoperation. I hope you don't mind. :) |
Hi, Magnus.
librdkafka 0.8 provides a callback for logger. The comment of function "rd_kafka_set_logger" mentions that "Alternatively the application may provide its own logger callback".
However, when I provide my logger callback, some compiler errors occur.
error: invalid use of incomplete type ‘const rd_kafka_t {aka const struct rd_kafka_s}’
/usr/local/include/librdkafka/rdkafka.h:59:16: error: forward declaration of ‘const rd_kafka_t {aka const struct rd_kafka_s}’
I wonder whether I use logger callback correctly.
Thanks.
The text was updated successfully, but these errors were encountered: