The default is to print to stderr, but a syslog logger is also available,
see rd_kafka_log_print and rd_kafka_log_syslog for the builtin alternatives.
Alternatively the application may provide its own logger callback.
Or pass \p func as NULL to disable logging.
This is the configuration alternative to the deprecated rd_kafka_set_logger()
@remark The log_cb will be called spontaneously from librdkafka's internal
threads unless logs have been forwarded to a poll queue through
\c rd_kafka_set_log_queue().
An application MUST NOT call any librdkafka APIs or do any prolonged
work in a non-forwarded \c log_cb.
@brief Set logger callback.
The default is to print to stderr, but a syslog logger is also available, see rd_kafka_log_print and rd_kafka_log_syslog for the builtin alternatives. Alternatively the application may provide its own logger callback. Or pass \p func as NULL to disable logging.
This is the configuration alternative to the deprecated rd_kafka_set_logger()
@remark The log_cb will be called spontaneously from librdkafka's internal threads unless logs have been forwarded to a poll queue through \c rd_kafka_set_log_queue(). An application MUST NOT call any librdkafka APIs or do any prolonged work in a non-forwarded \c log_cb.