Skip to content

AvroConsumer/Producer do not support the 'logger' keyword argument #657

Closed
@kontrafiktion

Description

@kontrafiktion

Description

The documentation says that it is possible to redirect the logging for the Consumer/Producer by adding logger=myLogger as keyword argument, e.g.:

producer = confluent_kafka.Producer({'bootstrap.servers': 'mybroker.com'}, logger=mylogger)

but the AvroConsumer and the AvroProducer just dismiss any **kwargs

How to reproduce

add a logger to the AvroProducer and force librdkafka to log something: the output still is sent to stderr

Checklist

Please provide the following information:

  • confluent_kafka.version(): ('1.0.0', 1048576) -- confluent_kafka.libversion(): ('1.0.0', 16777471)
  • [-] Apache Kafka broker version:
  • [-] Client configuration: {...}
  • [-] Operating system: any
  • [-] Provide client logs (with 'debug': '..' as necessary)
  • [-] Provide broker log excerpts
  • [-] Critical issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions